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,276
- Rates monitored
- 31,177
- Updates in 24h
- 3m
- 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": "justlend", "symbol": "ETH", "category": "lending", "rate": 0.00051643, "metadata": null, "lastUpdated": "2026-08-15T07:30:56.842Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 5, "stale": false }, { "provider": "bitfinex", "symbol": "ETH", "category": "lending", "rate": 0.3754, "metadata": null, "lastUpdated": "2026-08-15T07:30:54.491Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 7, "stale": false }, { "provider": "youhodler", "symbol": "ETH", "category": "lending", "rate": 11, "metadata": null, "lastUpdated": "2026-08-15T07:30:41.662Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 20, "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": "frax", "symbol": "ETH", "category": "staking", "rate": 2.61980066, "metadata": { "url": "https://api.frax.finance/v2/frxeth/summary/latest", "field": "sfrxethApr", "source": "multi_source" }, "lastUpdated": "2026-08-15T07:30:55.572Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 2, "stale": false }, { "provider": "etherfi", "symbol": "ETH", "category": "staking", "rate": 2.40226105, "metadata": { "mode": "erc4626_price_delta", "method": "getRate", "source": "onchain_rate", "chainId": 1, "contract": "0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee", "elapsedSeconds": 604802 }, "lastUpdated": "2026-08-15T07:30:53.113Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 5, "stale": false }, { "provider": "stakewise", "symbol": "ETH", "category": "staking", "rate": 2.257804, "metadata": null, "lastUpdated": "2026-08-15T07:30:41.707Z", "coinId": "ethereum", "providerSymbol": "ETH", "unitType": "percentage", "unitSymbol": "%", "ageSeconds": 16, "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