{"uid":"cap_GaEGsXyT1mJ9LzyTgjaJz","slug":"x402-factory-2-year-treasury-yield-fred-alfred-daily-d26381e7","name":"x402-factory 2-Year Treasury Yield (FRED/ALFRED Daily)","description":"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}.","url":"https://x402-factory.com/v1/econ/treasury-2y?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"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"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kT5MnTubWiVPdZJ30hDxL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Daily macro briefing for rates trader","prompt":"Give me today's 2-year Treasury yield from the Fed: the first-release number, whether it's been revised, how it compares to what the market expected, and when the next print drops."},{"title":"Monitoring yield revisions for research","prompt":"Pull the 2-year Treasury yield data and tell me if any of the recent observations have been revised away from their initial release values — I want to know if FRED has updated any prints."},{"title":"Automated rates surprise dashboard","prompt":"Fetch the latest 2-year Treasury yield print and compute the surprise versus expectations — include whether the expectation came from a prediction market or a trend model, and show me the last 12 daily readings."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:42:29.818Z","isFirstParty":false,"canonicalSlug":"x402-factory-2-year-treasury-yield-fred-alfred-daily-d26381e7"}