X

X402stock · Treasury Yields

by X402stock

GETBase

$0.01

per call · USD Coin on Base

The daily US Treasury par yield curve (Constant Maturity Treasury rates) for every maturity from 1 month to 30 years, in percent. Defaults to the latest published day; pass `?limit=` for more recent days (max 250) and `?year=YYYY`. No ticker needed. Use for the risk-free rate, rate-sensitivity context, and yield-curve inversion in macro-aware analysis. From x402stock

Endpoint

GET https://x402stock.vercel.app/api/v1/treasury-yields

2

Calls / 30d

2

Unique payers / 30d

Aug 30

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402stock.vercel.app/api/v1/treasury-yields", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402stock.vercel.app/api/v1/treasury-yields?limit=1" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "as_of": "2026-05-29T00:00:00.000Z",
  "count": 1,
  "maturities": [
    "1mo",
    "1.5mo",
    "2mo",
    "3mo",
    "4mo",
    "6mo",
    "1yr",
    "2yr",
    "3yr",
    "5yr",
    "7yr",
    "10yr",
    "20yr",
    "30yr"
  ],
  "rates": [
    {
      "date": "2026-05-29",
      "rates": {
        "1.5mo": 3.71,
        "10yr": 4.19,
        "1mo": 3.72,
        "1yr": 3.47,
        "20yr": 4.81,
        "2mo": 3.66,
        "2yr": 3.47,
        "30yr": 4.86,
        "3mo": 3.65,
        "3yr": 3.55,
        "4mo": 3.62,
        "5yr": 3.74,
        "6mo": 3.58,
        "7yr": 3.95
      }
    }
  ],
  "series": "daily_treasury_par_yield_curve",
  "source": "us_treasury",
  "unit": "percent"
}

Payment details

Pay to0x3070fbb3803819fb5bdfe9286fdc6325a877fa85
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from X402stock & similar services