# x402-factory 2-Year Treasury Yield (FRED/ALFRED Daily)

> x402-factory 2-Year Treasury Yield (FRED/ALFRED Daily) is a paid API for AI agents from x402-factory.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-10).

Returns the latest 2-year US Treasury yield from FRED/ALFRED with first-release vs revised values, surprise vs expectation, next release date, and a 12-observation mini-series.

## Facts

- Endpoint: GET https://x402-factory.com/v1/econ/treasury-2y?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-factory-2-year-treasury-yield-fred-alfred-daily-d26381e7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GaEGsXyT1mJ9LzyTgjaJz

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 x402-factory-2-year-treasury-yield-fred-alfred-daily-d26381e7
```

Example prompt: What's the latest 2-year Treasury yield from the Fed — did it surprise versus expectations, has it been revised since its first release, and when is the next daily print?

## When to prefer this

Use this endpoint when you need structured, enriched 2-year Treasury yield data that combines FRED's authoritative Fed releases with revision tracking (first-release vs latest), a surprise metric benchmarked against market-implied or model expectations, and a ready-to-use mini time-series — all in one call. Prefer this over raw FRED API calls when you need revision flags, surprise context, or prediction-market linkage without building that enrichment yourself.

## Known failure modes

- FRED/ALFRED data unavailable or delayed — endpoint may return stale or null latest_print
- No matching prediction market exists — expectation_source falls back to trend-model
- Payment of $0.02 USDC not fulfilled — 402 Payment Required response
- Rate limiting or upstream FRED API outage — 5xx error
- Revision list empty if no historical revisions exist for this series

## How this service works

Paid data APIs for AI agents: prediction-market analytics, weather intelligence, weather×market edge signals, and SEC/gov data. Paid endpoints use the x402 protocol (HTTP 402 + USDC on Base): call without payment to receive requirements, retry with an X-PAYMENT header. Machine-readable catalog: /llms.txt. Per-endpoint docs: /docs/{id}.

## Output

A JSON object containing: the FRED series ID and title, latest print details (observation date, headline value, first-release value, latest revised value, revised flag, units, basis), a surprise object with actual vs expected yield and expectation source (market-implied or trend-model), an optional linked prediction market, the next scheduled release date, a 12-observation recent mini-series, and a list of any revisions showing first vs latest values per observation date.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "title": "2-Year Treasury Yield (CM)",
   "units": "Percent",
   "recent": [
    {
     "value": 4.26,
     "obs_date": "2026-07-28"
    },
    {
     "value": 4.22,
     "obs_date": "2026-07-29"
    },
    {
     "value": 4.23,
     "obs_date": "2026-07-30"
    },
    {
     "value": 4.28,
     "obs_date": "2026-07-31"
    },
    {
     "value": 4.25,
     "obs_date": "2026-08-03"
    },
    {
     "value": 4.2,
     "obs_date": "2026-08-04"
    },
    {
     "value": 4.18,
     "obs_date": "2026-08-05"
    },
    {
     "value": 4.25,
     "obs_date": "2026-08-06"
    },
    {
     "value": 4.19,
     "obs_date": "2026-08-07"
    },
    {
     "value": 4.25,
     "obs_date": "2026-08-10"
    },
    {
     "value": 4.22,
     "obs_date": "2026-08-11"
    },
    {
     "value": 4.2,
     "obs_date": "2026-08-12"
    }
   ],
   "series": "treasury-2y",
   "fred_id": "DGS2",
   "surprise": null,
   "frequency": "Daily",
   "revisions": [],
   "latest_print": {
    "revised": false,
    "headline": 4.2,
    "obs_date": "2026-08-12",
    "latest_value": 4.2,
    "headline_basis": "first release level",
    "headline_units": "%",
    "first_released_on": "2026-08-13",
    "first_release_value": 4.2
   },
   "release_name": "H.15 Selected Interest Rates",
   "source_agency": "Board of Governors of the Federal Reserve System (US)",
   "surprise_note": "continuous market series (daily): no discrete print to grade",
   "next_release_date": "2026-11-27"
  },
  "meta": {
   "docs": "https://x402-factory.com/docs/econ.series.treasury-2y",
   "sources": [
    "fred"
   ],
   "version": "1.0.0",
   "endpoint": "/v1/econ/treasury-2y",
   "data_mode": "live",
   "freshness": "daily",
   "request_id": "req_00000000",
   "generated_at": "2026-08-21T03:58:57.919Z"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-factory-2-year-treasury-yield-fred-alfred-daily-d26381e7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-factory.com](https://www.zero.xyz/host/x402-factory.com/llms.txt)
