DeFi pool APY history
agent-data-tools.revmesh2074.workers.dev/defi/yield-history
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.
GET
https://agent-data-tools.revmesh2074.workers.dev/defi/yield-historyUptime100% of 2 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent-data-tools.revmesh2074.workers.dev/defi/yield-history?pool=747c1d2a-c668-4682-b9f9-296708a3dd90");
console.log(await res.json());Example input
{
"pool": "747c1d2a-c668-4682-b9f9-296708a3dd90"
}