MARKETS & FINANCE · UNITED STATES
US Treasury Yield Curve: Real Yields & Inversions
Monitor US Treasury nominal and TIPS real yields across years.
About this data
Monitor US Treasury nominal and TIPS real yields across years. Calculate approximate breakeven inflation, curve inversions, inversion duration, tenor changes and threshold alerts.
From the actor’s Apify Store listing. The per-call endpoint may return a bounded subset; its own description is below.
Buy per call over x402
One endpoint at api.ssh.autos. Each call is one JSON POST, paid in USDC with no account or API key, and answered in the same HTTP response.
POST /v1/us/treasury/yield-curve
Read one annual Treasury CSV and return up to ten latest trading-day curves for selected maturities, with the 2s10s spread and latest-versus-seven-days-ago comparison in the summary.
Real-yield enrichment and notifications are disabled.
Published gaps remain null.
Input
Send a JSON body to POST https://api.ssh.autos/v1/us/treasury/yield-curve.
| Field | Type | Required | Notes |
|---|---|---|---|
year | integer | optional | at least 1990 |
maturities | array of strings | optional | up to 13 items |
maxResults | integer | optional | 1–10; default 5 |
Returned fields
The answer is JSON: records, a list of up to 10, and summary, the run status and counts. Each record has these 28 fields; a field the source does not publish comes back null.
28 fields per record
| Field | Type | Notes |
|---|---|---|
recordKey | string | — |
source | string | always treasury.gov |
kind | string | always yield_curve |
date | string | Trading day, ISO YYYY-MM-DD. |
yield1Mo | number | — |
yield2Mo | number | — |
yield3Mo | number | — |
yield4Mo | number | — |
yield6Mo | number | — |
yield1Yr | number | — |
yield2Yr | number | — |
yield3Yr | number | — |
yield5Yr | number | — |
yield7Yr | number | — |
yield10Yr | number | — |
yield20Yr | number | — |
yield30Yr | number | — |
spread2s10s | number | 10 Yr − 2 Yr in percentage points (negative = inverted curve); null whenever either leg is unpublished that day — never a guess. |
sourceUrl | string | — |
collectedAt | string | — |
realYields | object | — |
breakevenApproximation | object | — |
realStatus | string | — |
realSourceUrl | string | — |
spread3m10y | number | — |
inversions | object | — |
changes | object | — |
alerts | array | — |
Example call
npx agentcash@latest fetch https://api.ssh.autos/v1/us/treasury/yield-curve -m POST -b '{"year": 2026, "maxResults": 3}'
The example values come from the API spec or the actor’s own sample input. Running it is a paid call.
What is and isn’t charged
You pay the call price for
- An answer, including a definitive “not found” or an empty result.
- Confirmed no matches returns records: [] (charged: it is an answer).
Free
- Invalid input (422), busy (503), source failure (502), timeout (504) and calls whose client hung up are never charged.
- Invalid input and source failures are not charged.
Prefer a subscription? Run it on Apify
This data source is a public actor on the Apify Store: US Treasury Yield Curve: Real Yields & Inversions. Run it with your Apify account and plan for larger, scheduled or exported runs; it may offer more input options than the per-call endpoint.
How x402 payment works
- Your client sends the request. The API answers
402 Payment Requiredwith the price and where to pay. - The client pays from its own wallet: USDC on Base or Solana over x402, or over MPP on Tempo. No account, sign-up or API key.
- The client retries with the payment attached and gets the JSON answer in the same call. You are only charged for answers.
The AgentCash CLI in the example does all three steps for you and pays from your AgentCash wallet. Any x402 or MPP client works the same way.
Recipes that use this
-
A morning market brief, written by your agent
Five calls, five market signals, one short briefing waiting when you wake up: sentiment, ETF flows, funding, rates and token unlocks.
Machine-readable: openapi.json · llms.txt