81trust / 100
Treasury Yields
by x402stock.vercel.app in Markets & finance
x402 APIPassing, checked 1 h ago
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
GET https://x402stock.vercel.app/api/v1/treasury-yields
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 223 ms typical, 223 ms slowest 5%
- Last check
- 1 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402stock.vercel.app/api/v1/treasury-yields?limit=1"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%2Fx402stock.vercel.app%2Fapi%2Fv1%2Ftreasury-yields
const res = await pay("https://x402stock.vercel.app/api/v1/treasury-yields?limit=1");
console.log(await res.json());Example input
{
"limit": 1
}Example output
{
"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"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 292 ms | $0.01 |
| 6 h ago | Passed | 402 | 223 ms | $0.01 |