81trust / 100

Defi Yield History

by DeFi yield pool history in Onchain & crypto

x402 APIPassing, checked 1 h ago

Daily APY and TVL history for one yield pool, up to ten years, with a summary of latest, minimum, maximum and mean APY and the TVL change over the window. Use it when an agent is judging whether a pool's current yield is typical or an outlier before allocating to it.

POST https://agent402.tools/api/defi-yield-history

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
185 ms typical, 190 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/defi-yield-history" \
  -H "content-type: application/json" \
  -d '{"limit":7,"pool":"54e9b138-3146-4c1f-8dce-1cb948f5ef96"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fdefi-yield-history
const res = await pay("https://agent402.tools/api/defi-yield-history", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"limit":7,"pool":"54e9b138-3146-4c1f-8dce-1cb948f5ef96"}),
});
console.log(await res.json());

Example input

{
  "limit": 7,
  "pool": "54e9b138-3146-4c1f-8dce-1cb948f5ef96"
}

Example output

{
  "count": 2,
  "fetchedAt": "2026-08-22T12:00:00.000Z",
  "points": [
    {
      "apy": 3.6,
      "apyBase": null,
      "apyReward": 3.6,
      "date": "2026-08-21",
      "tvlUsd": 548000000
    },
    {
      "apy": 3.51,
      "apyBase": null,
      "apyReward": 3.51,
      "date": "2026-08-22",
      "tvlUsd": 546610322
    }
  ],
  "pool": "54e9b138-3146-4c1f-8dce-1cb948f5ef96",
  "source": "defillama-yields",
  "summary": {
    "apy": {
      "changePct": -10,
      "first": 3.9,
      "latest": 3.51,
      "max": 3.9,
      "mean": 3.6,
      "min": 3.2
    },
    "tvlUsd": {
      "changePct": -5.6,
      "first": 579045934,
      "latest": 546610322,
      "max": 580000000,
      "mean": 560000000,
      "min": 540000000
    }
  },
  "totalPoints": 170
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402190 ms$0.002
4 h agoPassed402185 ms$0.002
8 h agoPassed402201 ms$0.002
13 h agoPassed402182 ms$0.002