DeFi pool APY history
Daily APY and TVL history of one DeFi pool (a poolId from /defi/yields or a DefiLlama pool URL): up to 365 days with APY base and reward, plus the average, min, max and latest APY over the window. Source: DefiLlama. Use to check whether a yield is steady or a short spike before an agent deposits. Not investment advice.
Inputs
| Name | Type | Description |
|---|---|---|
pool (required) | string | DefiLlama pool id (UUID) or pool URL |
days | integer | Days of history (1-365, default 30) |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/defi/yield-history?pool=747c1d2a-c668-4682-b9f9-296708a3dd90"
Or one of your 25 free calls, no key:
curl "https://agent-data-tools.revmesh2074.workers.dev/defi/yield-history?pool=747c1d2a-c668-4682-b9f9-296708a3dd90&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"pool": "747c1d2a-c668-4682-b9f9-296708a3dd90",
"days": 2,
"summary": {
"avgApy": 2.61,
"minApy": 2.58,
"maxApy": 2.64,
"latestApy": 2.64,
"latestTvlUsd": 21770402294
},
"history": [
{
"date": "2026-11-05",
"apy": 2.58,
"apyBase": 2.58,
"apyReward": null,
"tvlUsd": 21712345678
},
{
"date": "2026-11-06",
"apy": 2.64,
"apyBase": 2.64,
"apyReward": null,
"tvlUsd": 21770402294
}
],
"url": "https://defillama.com/yields/pool/747c1d2a-c668-4682-b9f9-296708a3dd90",
"source": "DefiLlama yields (yields.llama.fi)"
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is defi_yield_history, and the first 25 successful calls are free:
https://agent-data-tools.revmesh2074.workers.dev/mcp