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
- 594
- Assets covered
- 55
- Providers tracked
- 45,307
- Rates monitored
- 30,697
- Updates in 24h
- 3m
- Median refresh
- 2s
- 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": "silo", "symbol": "ETH", "category": "lending", "rate": 0.00000332, "metadata": { "headline": { "apy": 0.0000033186163311, "name": "0x02ae6a64a0dc17fffdc5722ad8270a7b32be44db", "tvlUsd": 3273.7673 }, "variants": [ { "apy": 0.0000033186163311, "name": "0x02ae6a64a0dc17fffdc5722ad8270a7b32be44db", "tvlUsd": 3273.7673 } ], "truncated": true, "variantCount": 15 }, "lastUpdated": "2026-10-10T18:11:00.229Z", "coinId": "ethereum", "providerSymbol": "WETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 254, "stale": false }, { "provider": "aqru", "symbol": "ETH", "category": "lending", "rate": 3, "metadata": null, "lastUpdated": "2026-10-10T18:10:56.780Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 257, "stale": false }, { "provider": "justlend", "symbol": "ETH", "category": "lending", "rate": 0.00027008, "metadata": null, "lastUpdated": "2026-10-10T18:10:53.682Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 260, "stale": false } ], "count": 17 } }
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": "stakin", "symbol": "ETH", "category": "staking", "rate": 3.14, "metadata": null, "lastUpdated": "2026-10-10T19:50:58.957Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 90, "stale": false }, { "provider": "nexo", "symbol": "ETH", "category": "staking", "rate": 6.25, "metadata": { "source": "nexo_earn_api", "duration": 30, "baseRate": 3.25, "flexRate": 3.25, "baseSymbol": "ETH", "cryptoName": "Ether", "hasFloorApy": false, "durationType": "fixed", "rewardsClaim": "automatic", "warmUpPeriod": { "type": "range", "numbers": [ 1, 1 ], "periods": [ "day", "day" ] }, "rewardsPayout": "automatic", "rewardFrequency": { "text": "daily", "type": "text" }, "minPurchaseAmount": "0.20079398", "undelegationPeriod": { "text": "immediate", "type": "text" }, "flexProviderSymbol": "ETH-FLEX" }, "lastUpdated": "2026-10-10T19:50:54.483Z", "coinId": "ethereum", "providerSymbol": "ETH-30D", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 95, "stale": false }, { "provider": "stader", "symbol": "ETH", "category": "staking", "rate": 2.32, "metadata": null, "lastUpdated": "2026-10-10T19:50:46.347Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 103, "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 590+ 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 55+ 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