# US Treasury Yield Curve with 10y-2y Spread and Inversion Flag

> US Treasury Yield Curve with 10y-2y Spread and Inversion Flag is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-03).

Returns the current US Treasury yield curve (1-month to 30-year maturities), the 10y-2y spread, and a boolean inversion flag indicating recession signal.

## Facts

- Endpoint: POST https://twin.unykorn.org/records/treasury-yields?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-treasury-yield-curve-with-10y-2y-spread-and-inversion-flag-6c1d8098
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aFTW6Ci_bozKwimyDKG7Y

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-with-10y-2y-spread-and-inversion-flag-6c1d8098 -d '<json body>'
```

Example prompt: Pull the current US Treasury yield curve across all maturities — 1-month through 30-year — and tell me the 10y-2y spread and whether the curve is currently inverted.

## When to prefer this

Choose this endpoint when you need a comprehensive snapshot of the full US Treasury yield curve in a single call, especially when you also need the 10y-2y spread and inversion flag computed for you. Prefer this over manually querying individual bond yields or scraping the Treasury website. Ideal for macro monitoring agents, daily briefings, or any workflow where yield curve shape and recession signal detection are needed together.

## Known failure modes

- Upstream Treasury data source unavailable — may return stale or empty data
- Network timeout if Treasury data feed is slow
- Payment failure if x402 USDC balance is insufficient
- No input params required but malformed POST body may cause a 400 error

## How this service works

US Treasury yield curve (1m-30y) with 10y-2y spread and inversion flag — Genesis402 / UnyKorn Operator Network

## Output

A structured response containing US Treasury yields for all standard maturities (1m, 3m, 6m, 1y, 2y, 5y, 10y, 30y), the computed 10-year minus 2-year spread in basis points or percentage, and a boolean inversion flag indicating whether the spread is negative (a classic recession signal).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {}
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "treasury-yields",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.003,
   "receipt_id": "g402-<16hex>"
  },
  "sources": [
   {
    "ok": true,
    "name": "<source>"
   }
  ],
  "limitations": "<text>",
  "generated_at": "<iso time>",
  "evidence_hash": "sha256:<64hex>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-treasury-yield-curve-with-10y-2y-spread-and-inversion-flag-6c1d8098/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
