# US Treasury 10Y-2Y Yield Curve Spread (FRED)

> US Treasury 10Y-2Y Yield Curve Spread (FRED) is a paid API for AI agents from finance-api.kdlcfa.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-17).

Returns the current US Treasury 10-year minus 2-year yield curve spread, sourced from FRED (DGS10 and DGS2), flagging inversion as a recession signal.

## Facts

- Endpoint: GET https://finance-api.kdlcfa.workers.dev/yield-curve-spread?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-treasury-10y-2y-yield-curve-spread-fred-c88d832a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9jcDMt7p9yE2csoOoNcqP

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-10y-2y-yield-curve-spread-fred-c88d832a
```

Example prompt: What's the current US Treasury 10Y-2Y yield curve spread, and is it inverted right now?

## When to prefer this

Choose this endpoint when you need a single, always-current 10Y-2Y Treasury spread value derived directly from FRED — the authoritative US government bond data source — with built-in inversion interpretation. Prefer it over general bond APIs when you specifically need the recession-signal framing and FRED data provenance at low per-call cost.

## Known failure modes

- FRED data temporarily unavailable — upstream outage from Federal Reserve data feed
- Stale or delayed data if FRED hasn't published latest yields (e.g. market holiday)
- HTTP 402 Payment Required if x402 payment is not included or fails
- Unexpected schema change if FRED renames DGS10/DGS2 series

## How this service works

US Treasury 10Y-2Y yield curve spread, via FRED (DGS10, DGS2). Negative spread signals inversion, historically associated with recession risk.

## Output

Returns the computed spread between the US 10-year Treasury yield (DGS10) and the 2-year Treasury yield (DGS2), along with the individual yield values. A negative spread indicates yield curve inversion, historically associated with elevated recession risk.

## 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": {}
    }
   },
   "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-10y-2y-yield-curve-spread-fred-c88d832a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from finance-api.kdlcfa.workers.dev](https://www.zero.xyz/host/finance-api.kdlcfa.workers.dev/llms.txt)
