Treasury Yields API - US Yield Curve, Daily History, No Key
treasury_yields_apiUS Treasury yields as JSON, no API key: the daily par yield curve (1M to 30Y), real yields (TIPS), T-bill rates and long-term rates, with 10Y-2Y, 10Y-3M, 30Y-5Y and 2Y-3M spreads, an inversion flag, day-over-day change in basis points and full history since 1990. Modes: latest, one date (nearest previous business day on holidays), history range (daily, weekly or monthly), spreads, and inversion periods. Source: U.S. Department of the Treasury (public domain). Monitor mode returns only new business days. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/treasury-yields-api.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "history",
"curve": "nominal",
"limit": 20,
"frequency": "daily"
},
"name": "treasury_yields_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | For mode date: the day you want, YYYY-MM-DD, for example 2024-03-15. | |
| mode | No | latest = the newest yield curve; date = one day (a holiday or weekend returns the previous business day and says so); history = every business day between Start and End date; spreads = spread time series only; inversion = periods when 10Y-2 | |
| curve | No | nominal = daily par yield curve (1M-30Y, since 1990); real = real yield curve / TIPS (5Y-30Y, since 2003); bills = T-bill bank discount and coupon equivalent rates (since 2002); longterm = long-term composite and 20Y CMT (since 2000). Sprea | |
| limit | No | Maximum rows returned (newest kept when the range is longer). Between 1 and 20000. | |
| endDate | No | For history, spreads and inversion: last day, YYYY-MM-DD. Default today. | |
| frequency | No | For history and spreads: daily (every business day), weekly (last business day of each week) or monthly (last business day of each month). | |
| startDate | No | For history, spreads and inversion: first day, YYYY-MM-DD. Default 30 days before End date. Max range 40 years. | |
| maturities | No | Optional filter, for example 2Y, 10Y, 3M, 30Y. Empty = every maturity of the curve. |