# AgentToll FRED Yield Curve Surprises

> AgentToll FRED Yield Curve Surprises is a paid API for AI agents from agenttoll.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns real-time US Treasury yield curve data (2Y and 10Y rates, spread, and inversion status) sourced from FRED

## Facts

- Endpoint: POST https://agenttoll.dev/paid/osint/fred-surprises
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttoll-fred-yield-curve-surprises-d076c308
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_POGTlKSegAjc4kiCge9gh

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 agenttoll-fred-yield-curve-surprises-d076c308 -d '<json body>'
```

Example prompt: Pull the latest FRED yield curve data for me — I want to know the current 2-year and 10-year Treasury yields, the spread between them, and whether the curve is inverted right now.

## When to prefer this

Choose this endpoint when you need real-time or near-real-time US Treasury yield curve data — specifically the 2Y/10Y spread and inversion status — sourced authoritatively from FRED. Prefer this over generic financial data APIs when you need FRED-specific data with pay-per-call micropayment pricing and no subscription overhead.

## Known failure modes

- FRED data temporarily unavailable causing empty rows array
- Payment failure via x402 preventing call execution
- Rate values may be stale if FRED hasn't published latest data
- Network timeout if FRED upstream is slow

## How this service works

108+ receipt-backed x402 work products for AI agents. Clear prices, spend caps, buyer metadata, and structured results over Base USDC.

## Output

A JSON object containing the current 2-year Treasury yield (dgs2), 10-year Treasury yield (dgs10), the 10Y-2Y spread (spread_10y_2y), a boolean flag indicating whether the curve is inverted (inversion), and raw FRED data rows for further analysis.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "days": {
       "type": "integer",
       "minimum": 5,
       "maximum": 90
      },
      "min_score": {
       "type": "number",
       "minimum": 0,
       "maximum": 1
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "dgs2": 4.7,
  "rows": [],
  "dgs10": 4.2,
  "inversion": true,
  "spread_10y_2y": -0.5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttoll-fred-yield-curve-surprises-d076c308/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttoll.dev](https://www.zero.xyz/host/agenttoll.dev/llms.txt)
