# US Treasury Yield Curve

> US Treasury Yield Curve is a paid API for AI agents from treasury-macro.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Returns the latest US Treasury yield curve across all maturities (1M–30Y), plus 2s10s and 3m10y spreads and a normal/flat/inverted verdict.

## Facts

- Endpoint: GET https://treasury-macro.x402tookit.com/us-yield-curve?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-treasury-yield-curve-161bdb84
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fBe2VcFIy-FycSP03ICFv

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-161bdb84
```

Example prompt: What does the US Treasury yield curve look like right now — give me all the yields from 1 month to 30 years, the 2s10s and 3m10y spreads, and tell me whether it's inverted, flat, or normal.

## When to prefer this

Choose this endpoint when you need a complete, ready-interpreted US Treasury yield curve snapshot with pre-computed spreads and an explicit inversion verdict — saving you from fetching raw Treasury data and computing spreads yourself. Prefer it over building your own Treasury scraper or using a general financial data API when you specifically want the 2s10s and 3m10y spread analysis with a plain-English normal/flat/inverted classification.

## Known failure modes

- Treasury data source temporarily unavailable — degraded flag set to true with partial data
- Treasury market closed or holiday — may return previous business day's data
- Rate limiting or payment failure — 402 response requiring USDC payment
- Null values for specific maturities if Treasury didn't publish that tenor
- Schema truncation if upstream data feed is stale

## How this service works

Latest US Treasury yield curve from 1 month to 30 years, with 2s10s and 3m10y spreads and an inverted/flat/normal verdict.

## Output

A JSON object containing: the date and as-of timestamp of the data, yield values for each Treasury maturity (1M, 2M, 3M, 4M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y, 30Y), the 2s10s spread, the 3m10y spread, a verdict string (normal/flat/inverted), an array of reasons supporting the verdict, a human-readable summary, day-over-day changes per maturity, previous date data, source URL, attribution, disclaimer, and a degraded flag if data is incomplete.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "view": {
       "type": "string",
       "description": "Optional label echoed back; no effect"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "date": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "yields": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "1M": {
         "type": [
          "null",
          "number"
         ]
        },
        "1Y": {
         "type": [
          "null",
          "number"
         ]
        },
        "2M": {
         "type": [
          "null",
          "number"
         ]
        },
        "2Y": {
         "type": [
          "null",
          "number"
         ]
        },
        "3M": {
         "type": [
          "null",
          "number"
         ]
        },
        "3Y": {
         "type": [
          "null",
          "number"
         ]
        },
        "4M": {
         "type": [
          "null",
          "number"
         ]
        },
        "5Y": {
         "type": [
          "null",
          "number"
         ]
        },
        "6M": {
         "type": [
          "null",
          "number"
         ]
        },
        "7Y": {
         "type": [
          "null",
          "number"
         ]
        },
        "10Y": {
         "type": [
          "null",
          "number"
         ]
        },
        "20Y": {
         "type": [
          "null",
          "number"
         ]
        },
        "30Y": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
      
… (truncated)
```

## More

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