# US Treasury Yield Curve

> US Treasury Yield Curve is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-28).

Returns the US Treasury par yield curve (1-month to 30-year maturities) with spreads, inversion flag, and up to 60 days of history for any date since 1990.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/finance/treasury-yields?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-treasury-yield-curve-dffdd494
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c22I-YgcFJUCJR8SlezYf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability us-treasury-yield-curve-dffdd494
```

Example prompt: What does the US Treasury yield curve look like today — give me all the maturities from 1-month to 30-year, the 10y-2y spread, and whether it's inverted.

## When to prefer this

Choose this endpoint when you need authoritative US Treasury yield data across the full maturity spectrum, especially when you need the inversion flag and spreads pre-computed, or need historical yield curve snapshots going back to 1990. Prefer this over generic financial data APIs when you specifically need the par yield curve with macro analysis signals like the 10y-2y and 10y-3m spreads already calculated.

## Known failure modes

- Date before 1990 returns an error or empty data
- Non-trading days (weekends, holidays) may return no data or prior trading day data
- days parameter outside 1-60 range may be rejected
- Network/server unavailability on the hosted Render instance
- Malformed date format returns a validation error

## How this service works

US Treasury par yield curve from 1 month to 30 years (percent) for the latest day or any date since 1990, with 10y-2y and 10y-3m spreads, inversion flag and up to 60 days of history. Use for risk-free rates, discounting, macro analysis or answering where 10-year yields are.

## Output

Returns the full par yield curve across standard maturities (1m, 2m, 3m, 6m, 1y, 2y, 3y, 5y, 7y, 10y, 20y, 30y) in percent, along with the 10y-2y and 10y-3m spreads, a boolean inversion flag, and optionally up to 60 days of historical yield data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "date": {
       "type": "string",
       "description": "YYYY-MM-DD (default latest)"
      },
      "days": {
       "type": "integer",
       "description": "Days of history 1-60, default 1"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-treasury-yield-curve-dffdd494/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bess-x402.onrender.com](https://www.zero.xyz/host/bess-x402.onrender.com/llms.txt)
