82trust / 100

Treasury Yield Curve

by US Treasury daily yield curve in Other

x402 APIPassing, checked 2 h ago

Latest US Treasury daily constant-maturity yield curve in one object: recordDate plus mo1, mo3, mo6, yr1, yr2, yr3, yr5, yr7, yr10, yr20 and yr30, each a yield in percent. Source: FRED DGS* series (St. Louis Fed), public domain. No params - always returns the most recent published curve, which trails today by a business day or two; for a date range use treasury-yield-history.

GET https://agent402.tools/api/treasury-yield-curve

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agent402.tools/api/treasury-yield-curve"
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%2Ftreasury-yield-curve
const res = await pay("https://agent402.tools/api/treasury-yield-curve");
console.log(await res.json());

Example input

{}

Example output

{
  "mo1": 3.97,
  "mo3": 4.16,
  "mo6": 4.26,
  "recordDate": "2026-09-22",
  "source": "FRED DGS* constant-maturity series (St. Louis Fed)",
  "unit": "percent",
  "yr1": 4.43,
  "yr10": 4.96,
  "yr2": 4.71,
  "yr20": 5.33,
  "yr3": 4.81,
  "yr30": 5.29,
  "yr5": 4.83,
  "yr7": 4.89
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402199 ms$0.005
7 h agoPassed402289 ms$0.005