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
- 620
- Assets covered
- 56
- Providers tracked
- 42,152
- Rates monitored
- 31,150
- Updates in 24h
- 2m
- Median refresh
- 10s
- 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": "compound-v3", "symbol": "ETH", "category": "lending", "rate": 1.22273498, "metadata": { "mode": "comet_supply_rate", "method": "getSupplyRate", "source": "onchain_rate", "chainId": 1, "contract": "0xA17581A9E3356d9A858b789D68B4d866e593aE94" }, "lastUpdated": "2026-08-10T15:35:45.738Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 238, "stale": false }, { "provider": "aqru", "symbol": "ETH", "category": "lending", "rate": 3, "metadata": null, "lastUpdated": "2026-08-10T15:35:35.181Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 248, "stale": false }, { "provider": "bitfinex", "symbol": "ETH", "category": "lending", "rate": 0.3791, "metadata": null, "lastUpdated": "2026-08-10T15:35:32.452Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 251, "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": "binance-staked-eth", "symbol": "ETH", "category": "staking", "rate": 2.35447132, "metadata": { "mode": "erc4626_price_delta", "method": "exchangeRate", "source": "onchain_rate", "chainId": 1, "contract": "0xa2E3356610840701BDf5611a53974510Ae27E2e1", "elapsedSeconds": 604837 }, "lastUpdated": "2026-08-10T16:10:54.143Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 83, "stale": false }, { "provider": "stakewise", "symbol": "ETH", "category": "staking", "rate": 2.13439034, "metadata": null, "lastUpdated": "2026-08-10T16:10:51.105Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 86, "stale": false }, { "provider": "stader", "symbol": "ETH", "category": "staking", "rate": 2.19, "metadata": null, "lastUpdated": "2026-08-10T16:10:46.670Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 90, "stale": false } ], "count": 11 } }
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 620+ 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