{"uid":"cap_9jcDMt7p9yE2csoOoNcqP","slug":"us-treasury-10y-2y-yield-curve-spread-fred-c88d832a","name":"US Treasury 10Y-2Y Yield Curve Spread (FRED)","description":"US Treasury 10Y-2Y yield curve spread, via FRED (DGS10, DGS2). Negative spread signals inversion, historically associated with recession risk.","url":"https://finance-api.kdlcfa.workers.dev/yield-curve-spread?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_njbQVSGck5toDhECIjybZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"What's the current US Treasury 10Y-2Y yield curve spread, and is it inverted right now?","exampleUseCases":[{"title":"Recession risk dashboard alert","prompt":"Check the Treasury 10Y-2Y yield curve spread and tell me if it's currently inverted — I want to know if we're in recession-warning territory."},{"title":"Macro briefing for portfolio review","prompt":"Pull the latest 10-year minus 2-year Treasury yield spread from FRED so I can include it in my weekly macro summary for the team."},{"title":"Bond market condition check","prompt":"Is the US yield curve currently inverted? Get me the 10Y-2Y spread so I can assess whether bond markets are pricing in a slowdown."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T18:33:08.656Z","isFirstParty":false,"canonicalSlug":"us-treasury-10y-2y-yield-curve-spread-fred-c88d832a"}