US Treasury daily yield curve

$0.005 per call · USDC via x402 · GET /api/treasury-yield-curve

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. Send GET /api/treasury-yield-curve with no input and pay $0.005 per call over x402 or MPP (there is no free tier). It returns a JSON object with recordDate, mo1, mo3, mo6, yr1 and 9 more.

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.

Category: Live public data · Tags: treasury yield-curve interest-rates rates macro bonds fed 10-year

TRY IN PLAYGROUND →

Parameters

US Treasury daily yield curve takes no parameters.

Example request

curl -i "https://agent402.tools/api/treasury-yield-curve"

Without payment this returns HTTP 402 Payment Required with the exact price for treasury-yield-curve; any x402 v2 or MPP client pays it and retries.

Example response

{
  "recordDate": "2026-09-22",
  "mo1": 3.97,
  "mo3": 4.16,
  "mo6": 4.26,
  "yr1": 4.43,
  "yr2": 4.71,
  "yr3": 4.81,
  "yr5": 4.83,
  "yr7": 4.89,
  "yr10": 4.96,
  "yr20": 5.33,
  "yr30": 5.29,
  "unit": "percent",
  "source": "FRED DGS* constant-maturity series (St. Louis Fed)"
}
FieldTypeAlways presentIn the example
recordDatestringyes2026-09-22
mo1numberyes3.97
mo3numberyes4.16
mo6numberyes4.26
yr1numberyes4.43
yr2numberyes4.71
yr3numberyes4.81
yr5numberyes4.83
yr7numberyes4.89
yr10numberyes4.96
yr20numberyes5.33
yr30numberyes5.29
unitstringyespercent
sourcestringyesFRED DGS* constant-maturity series (St. Louis Fed)

From an MCP client

catalog.call {
  "slug": "treasury-yield-curve",
  "params": {}
}

The hosted connector at https://agent402.tools/mcp needs a payment for treasury-yield-curve; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/treasury-yield-curve");

Part of these workflows

US Treasury daily yield curve is one step in these 5 skill packs, each sold as a single call:

Related tools

US Treasury yield history

$0.005 · GET /api/treasury-yield-history

Last N business days of US Treasury constant-maturity yields, oldest→newest. Source: FRED DGS* series (St. Louis Fed), p…

Treasury yield-curve spreads + inversion

$0.005 · GET /api/yield-curve-spread

Derived 2s10s and 3m10y Treasury yield-curve spreads (in basis points) plus a boolean recession-signal flag when the cur…

Average interest rates on Treasury securities

$0.005 · GET /api/treasury-avg-rates

Latest average interest rates the US Treasury is paying by security type (Bills, Notes, Bonds, TIPS, FRNs, marketable vs…

Effective federal funds rate

$0.005 · GET /api/fed-funds

Current effective federal funds rate (current, as of date, in percent) plus a trailing N-day history of {date, value}. S…

FRED bulk release observations (v2)

$0.005 · GET /api/fred-release-observations

Bulk-fetch observations for every series in a FRED release in one call. Use it to grab an entire economic report (jobs r…

FRED time series

$0.005 · GET /api/fred-series

Fetch any of FRED's ~800,000 economic time series by series ID - GDP (GDPC1), CPI (CPIAUCSL), unemployment (UNRATE), fed…