get_lending_yields
Compare current Aave, Compound and Morpho supply and borrow APYs by chain and asset, or rank stablecoin supply rates, to decide where to lend or borrow.
Instructions
chainpeek: Use when an agent must choose where to lend or borrow: supply and borrow APY on Aave, Compound and Morpho. For protocol TVL use get_protocol_tvl; for perp funding use get_funding_rates. Returns current lending supply and borrow APY on Aave V3, Compound V3 and Morpho by chain and asset, or the best stablecoin supply rate (USDC, USDT, DAI, USDS, USDe) across them. Snapshot refreshed about every 5 minutes (as_of, stale); Aave, Compound and Morpho on Ethereum, Base, Arbitrum, Optimism and Polygon; APY excludes rewards. Informational only, not investment advice. Bad input is a 422 (not charged). Typically under 1 s. Price: USD 0.001. Free: 10 chain reads per IP per UTC day. Docs: https://tanod.dev/learn/defi-lending-rates-api.html
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_lending_yields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | all: every matching rate, highest supply APY first. best_stablecoin: USDC, USDT, DAI, USDS and USDe ranked by supply APY across the three protocols (canonical token addresses only). | all |
| limit | No | Rows returned. | |
| assets | No | Asset symbols such as USDC or WETH (case-insensitive, at most 20). In best_stablecoin only USDC, USDT, DAI, USDS and USDe are ranked. | |
| chains | No | Subset of ethereum, base, arbitrum, polygon, optimism. Default: all. Aave V3, Compound V3 and Morpho cover all five. | |
| protocols | No | Subset of aave_v3, compound_v3, morpho. Default: all. | |
| min_tvl_usd | No | Only rows with at least this many USD supplied (rows with an unknown USD size are dropped when it is above 0). Default 0; best_stablecoin defaults to 1,000,000. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| rows | No | ||
| view | No | ||
| age_s | No | ||
| as_of | No | ||
| count | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| stale | No | ||
| sources | No | ||
| coverage | No | ||
| apy_basis | No | ||
| max_age_s | No | ||
| sorted_by | No | ||
| min_tvl_usd | No | ||
| stablecoins | No | ||
| best_by_asset | No | ||
| total_matching | No | ||
| refresh_interval_s | No | ||
| sources_unavailable | No |