get_ranking
Get ranked list of best DeFi lending returns, sorted by net APY.
Args:
api_key: Your PreFlyte API key (required).
window_days: Return window — 7, 14, 30, or 90 days. Default 7.
strategy: "supply" or "borrow". Default "supply".
top_n: Number of top results. Default 10, max 30.
Returns:
Ranked list with position number, net_apy_pct, gross_apy_pct,
gas details, and data completeness scores.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"api_key": "<api_key>"
},
"name": "get_ranking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | ||
| api_key | Yes | ||
| strategy | No | supply | |
| window_days | No |