Skip to content
Fourohtwo

agent402.tools/api/treasury-yield-history

Daily history of US Treasury par yields over the last N business days, oldest first: one row per day with recordDate and each maturity's yield in percent, from the Treasury's Daily Treasury Par Yield Curve Rates (public domain). Source: U.S. Treasury.

BasePolygonArbitrumMonadAvalancheSei+5Unchecked
GEThttps://agent402.tools/api/treasury-yield-history

UptimeNot checked yet

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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agent402.tools/api/treasury-yield-history?days=30");
console.log(await res.json());

Example input

{
  "days": 30
}