# Treasury Yield Curve Signal

> Treasury Yield Curve Signal is a paid API for AI agents from x402-stock-indicators.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns the full US Treasury yield curve (8 maturities), 10y-2y and 10y-3mo spreads, and inversion flags — live from FRED's daily constant-maturity series.

## Facts

- Endpoint: GET https://x402-stock-indicators.vercel.app/yield-curve
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/treasury-yield-curve-signal-be9f9dee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0Lw16SEf497rDHl3SBWeb

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 treasury-yield-curve-signal-be9f9dee
```

Example prompt: Pull the current US Treasury yield curve — I need all the maturities from 1-month to 30-year, the 10y-2y and 10y-3mo spreads, and whether the curve is inverted right now.

## When to prefer this

Use this endpoint when you need a complete, pre-computed snapshot of the US yield curve with inversion flags already calculated, rather than fetching individual Treasury yields from FRED yourself. Ideal for macro dashboards, recession monitoring agents, or risk-off signal detection where the 10y-2y and 10y-3mo spreads are the key metrics. Prefer this over the US Macro Indicators Dashboard sibling endpoint when you specifically need full yield curve granularity across all 8 maturities rather than a broader set of macro indicators.

## Known failure modes

- FRED data unavailable or delayed — endpoint may return stale or missing yields during Federal holidays or data publication delays
- Network timeout from the FRED upstream API
- x402 payment failure if USDC balance is insufficient or payment header is malformed
- No query parameters accepted — wrong input schema yields a 400 error

## How this service works

US Treasury yield curve in one call: 1mo/3mo/6mo/1yr/2yr/5yr/10yr/30yr yields, the 10y-2y and 10y-3mo spreads, and a boolean inversion flag on each -- a classic recession/risk-off signal every macro trader watches. Live from FRED's daily constant-maturity Treasury series. Not ticker-specific. $0.01/call.

## Output

Returns all 8 constant-maturity Treasury yields (1mo, 3mo, 6mo, 1yr, 2yr, 5yr, 10yr, 30yr) sourced from FRED's daily series, along with computed 10y-2y and 10y-3mo spread values, and a boolean inversion flag on each spread indicating whether the curve is currently inverted at that tenor pair.

## 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",
     "properties": {}
    }
   },
   "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/treasury-yield-curve-signal-be9f9dee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-stock-indicators.vercel.app](https://www.zero.xyz/host/x402-stock-indicators.vercel.app/llms.txt)
