US Treasury par yield curve, every constant maturity from 1 month to 30 years for a publis
US Treasury par yield curve, every constant maturity from 1 month to 30 years for a published business day. Returns curve[] with tenor, months and percent, spreads (2s10s, 3m10y, 5s30s) and an explicit inversion flag - the real question is whether the curve is inverted, not what fourteen numbers are. A tenor Treasury did not publish is null, never zero. Pass ?latest=1 OR ?date=YYYY-MM-DD, not both. Errors: 400 conflicting_params|bad_latest|bad_date, 404 no_curve with the available range.
30000 (raw units)
price
3
calls / 30d
2
unique payers
2026-09-16
updated
Provider
x402.donnyautomation.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x2740651e046c59aB2A6510401140643292d3a96F",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "30000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"latest": "1"
},
"type": "http"
},
"output": {
"example": {
"attribution": "Daily Treasury Par Yield Curve Rates, U.S. Department of the Treasury (public domain).",
"curve": [
{
"months": 3,
"percent": 3.91,
"tenor": "3 Mo"
},
{
"months": 24,
"percent": 4.25,
"tenor": "2 Yr"
},
{
"months": 120,
"percent": 4.7,
"tenor": "10 Yr"
}
],
"date": "2026-08-03",
"inversion": {
"2s10s": false,
"3m10y": false,
"anyInverted": false
},
"isLatest": true,
"spreads": {
"2s10s": 0.45,
"3m10y": 0.79,
"5s30s": 0.83,
"unit": "percentage points"
},
"ts": "2026-08-03T00:00:00.000Z"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"date": {
"description": "YYYY-MM-DD business day, for a specific past day. A non-publication day returns 404 with the available range, not the nearest guess.",
"type": "string"
},
"latest": {
"description": "Pass latest=1 for the most recent published curve. Use instead of date, not with it.",
"type": "string"
}
},
"required": [],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://x402.donnyautomation.com/treasury" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402.donnyautomation.com/treasury");
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://x402.donnyautomation.com/treasury")
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/4925.json, and this resource appears in /discovery/resources and /discovery/search.