DeFi Yield API
The DeFi yield API with CeFi context built in.
Live and historical lending and staking yields from on-chain protocols — Aave, Compound, Morpho, Spark and more — normalized into the same typed schema as centralized platforms, with an OpenAPI spec and a free tier.
CoverageLive
- 601
- Assets covered
- 53
- Providers tracked
- 46,188
- Rates monitored
- 30,514
- Updates in 24h
- 4m
- Median refresh
- 7s
- Freshest provider
Schema
On-chain yields, normalized like everything else.
Protocol yields arrive in the same typed shape as every other rate — no per-protocol adapters, no subgraph wrangling, one integration.
Per-rate fields
- Lending and staking rates per asset, per protocol or platform
- One normalized JSON schema across every source — protocol or platform
- Per-rate freshness timestamps and source signals
- Historical rate series for backtesting and trend charts
Coverage
- Major DeFi protocols including Aave, Compound, Morpho, Spark, Fluid and Maple
- Liquid staking providers like Lido alongside validator and exchange staking
- ETH, stablecoins and the long tail of yield-bearing assets
Live response — fetched from the public API at build time
// GET /api/v1/rates/ETH?category=lending { "data": { "symbol": "ETH", "rates": [ { "provider": "euler-v2", "symbol": "ETH", "category": "lending", "rate": 1.43545304, "metadata": { "headline": { "apy": 1.4354530356909547, "name": "eWETH-2", "tvlUsd": 1256319.261689298 }, "variants": [ { "apy": 1.4354530356909547, "name": "eWETH-2", "tvlUsd": 1256319.261689298 } ], "truncated": false, "variantCount": 1 }, "lastUpdated": "2026-11-21T12:20:55.660Z", "coinId": "ethereum", "providerSymbol": "WETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 2, "stale": false }, { "provider": "youhodler", "symbol": "ETH", "category": "lending", "rate": 11, "metadata": null, "lastUpdated": "2026-11-21T12:20:50.933Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 7, "stale": false }, { "provider": "aave-v3", "symbol": "ETH", "category": "lending", "rate": 1.48304171, "metadata": { "mode": "aave_liquidity_rate", "method": "getReserveData", "source": "onchain_rate", "chainId": 1, "contract": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2" }, "lastUpdated": "2026-11-21T12:20:45.138Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 12, "stale": false } ], "count": 16 } }
CeFi + DeFi
Stop stitching a DeFi source and a CeFi source together.
The same request that returns Aave and Compound returns Nexo and Gemini — one response, one schema, so on-chain and custodial yields arrive together instead of from two separate sources.
- One call per asset returns on-chain protocols and centralized platforms together
- Every source shares the same fields, so rows are directly comparable
- Build side-by-side CeFi and DeFi views, spreads and alerts from a single feed
Live response — fetched from the public API at build time
// GET /api/v1/rates/ETH?category=staking { "data": { "symbol": "ETH", "rates": [ { "provider": "binance-staked-eth", "symbol": "ETH", "category": "staking", "rate": 2.35269266, "metadata": { "mode": "erc4626_price_delta", "method": "exchangeRate", "source": "onchain_rate", "chainId": 1, "contract": "0xa2E3356610840701BDf5611a53974510Ae27E2e1", "elapsedSeconds": 604800 }, "lastUpdated": "2026-11-21T14:35:40.131Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 131, "stale": false }, { "provider": "stakin", "symbol": "ETH", "category": "staking", "rate": 2.75, "metadata": null, "lastUpdated": "2026-11-21T14:35:25.358Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 146, "stale": false }, { "provider": "stader", "symbol": "ETH", "category": "staking", "rate": 2.61, "metadata": null, "lastUpdated": "2026-11-21T14:30:58.043Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 413, "stale": false } ], "count": 10 } }
FAQ
Frequently asked questions
- Is there a DeFi API for yield data?
- Yes. The API returns live and historical lending and staking yields from major DeFi protocols — Aave, Compound, Morpho, Spark and more — as typed JSON with per-rate freshness and source signals, covering 600+ assets without running your own indexers or subgraph queries.
- Is there a CeFi API too?
- Yes — the same one. Every response mixes on-chain protocols with centralized platforms like Nexo and Gemini in one normalized schema, across 50+ providers total, so you integrate one endpoint instead of a separate CeFi product.
- Which DeFi protocols are covered?
- Lending markets include Aave, Compound, Morpho, Spark, Fluid, Maple, Gearbox and Silo; staking includes liquid staking providers like Lido alongside validators and exchanges. Coverage follows where real yield lives and expands as protocols gain traction.
- Can I get historical DeFi yields?
- Yes. Historical rate series are available through the API for backtesting, trend charts and research, and the historical rates page shows the same data as a human-readable view.
- Can AI agents use the DeFi yield API?
- Yes. The REST API has a public OpenAPI spec and a free tier, and the same data layer is exposed as MCP tools — agents can connect via the hosted MCP endpoint or the @bitcompare/mcp-server npm package.
Start building in minutes.
10,000 requests a month free — no credit card. Paid plans unlock higher volume.
- Free tier: 10,000 requests/month, no card required
- Paid plans for higher volume and SLAs
- Sign in only for keys, billing and dashboards at pro.bitcompare.net
- Docs and the OpenAPI spec are public — no login required
- MCP tools are powered by the same API and data layer