Get Yield Rates
get_yield_ratesGet DeFi yield pool rates from DeFiLlama across 1,000+ protocols and all chains: pools sorted by APY with TVL, base/reward APY, and 7d/30d mean APY context, filterable by protocol, chain, min TVL, min/max APY, and symbol. Returns up to 50 pools. For protocol-specific lending comparisons (Aave vs Compound) prefer get_lending_rates.
Use when: Use for broad cross-protocol yield discovery. Call at most once per request — filter with min_apy, max_apy, min_tvl_usd, and symbols_any in a single call, then sort client-side rather than re-calling. For protocol-specific rate questions use get_lending_rates.
Limitations: Third-party DeFiLlama analytics; up to 50 pools per call. The symbol field lists underlying tokens (e.g. 'ETH-USDC') — filter client-side instead of re-calling with different arguments. Reward APY indicates reward-dependent yield; do not present spot APY as durable.
Alternatives: get_lending_rates, get_protocol_tvl, get_token_price
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Filter by chain name (e.g. 'Ethereum', 'Base', 'Arbitrum'). Case-insensitive. None = all chains. | |
| limit | No | Maximum number of pools to return, sorted by APY descending. | |
| max_apy | No | Exclude pools with APY above this value (%). Default None = no upper bound. Use to filter out leveraged/boosted pools (e.g. max_apy=30) so genuine stablecoin yields surface. | |
| min_apy | No | Exclude pools with APY below this value (%). Default 0 includes all. | |
| protocols | No | Filter by DeFiLlama project slugs (e.g. ['aave-v3', 'compound-v3']). None or empty list = include all protocols. | |
| min_tvl_usd | No | Exclude pools with TVL below this threshold (USD). Default $1M filters noise. | |
| stable_only | No | When true, return only stablecoin pools and rank by 30d mean APY first to emphasize consistency over short-term spikes. | |
| symbols_any | No | Optional symbol filter. If provided, include pools whose symbol field contains at least one token from this list (case-insensitive). Use held token symbols from get_wallet_portfolio to focus results. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| pools | Yes | ||
| provenance | No | Source and freshness metadata for the DeFiLlama response. | |
| total_matching | Yes | ||
| filters_applied | Yes |