chainpeek: current lending supply and borrow APY on Aave V3, Compound V3 and Morpho, with a best stablecoin rate view
get_lending_yieldsCompare current lending supply and borrow APY on Aave V3, Compound V3, and Morpho by chain and asset, or rank USDC, USDT, DAI, USDS, and USDe by supply rate.
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
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, 1-200 (default 50). | |
| assets | No | Optional 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 | Optional subset of ethereum, base, arbitrum, polygon, optimism. Default: all. Aave V3, Compound V3 and Morpho cover all five. | |
| protocols | No | Optional 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 |