The daily US Treasury par yield curve (Constant Maturity Treasury rates) for every maturit
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
10000 (raw units)
price
13
calls / 30d
8
unique payers
2026-09-17
updated
Provider
x402stock.xyz · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x3070Fbb3803819fB5BdfE9286fdc6325A877fA85",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"limit": 1
},
"type": "http"
},
"output": {
"example": {
"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"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET",
"HEAD",
"DELETE"
],
"type": "string"
},
"queryParams": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"limit": {
"default": 1,
"exclusiveMinimum": 0,
"maximum": 250,
"type": "integer"
},
"year": {
"maximum": 2100,
"minimum": 1990,
"type": "integer"
}
},
"required": [
"limit"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"as_of": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"count": {
"type": "number"
},
"maturities": {
"items": {
"type": "string"
},
"type": "array"
},
"rates": {
"items": {
"additionalProperties": false,
"properties": {
"date": {
"type": "string"
},
"rates": {
"additionalProperties": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"propertyNames": {
"type": "string"
},
"type": "object"
}
},
"required": [
"date",
"rates"
],
"type": "object"
},
"type": "array"
},
"series": {
"type": "string"
},
"source": {
"const": "us_treasury",
"type": "string"
},
"unit": {
"type": "string"
}
},
"required": [
"source",
"as_of",
"series",
"unit",
"maturities",
"count",
"rates"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://x402stock.xyz/api/v1/treasury-yields" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402stock.xyz/api/v1/treasury-yields");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://x402stock.xyz/api/v1/treasury-yields")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/5246.json, and this resource appears in /discovery/resources and /discovery/search.