{"uid":"cap_WYnC-5DhMUMYHqoM4jg4F","slug":"treasury-rates-4ecbd214","name":"treasury-rates","description":"US Treasury interest rates: the Daily Treasury Par Yield Curve fused with the average interest rates on the outstanding debt by security type. Computes the 2s10s spread and an inversion flag. The yield curve is a resilient partial grain that degrades to the average rates if its upstream is unreachable.","url":"https://payai.agentstools.dev/treasury/rates?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"year":{"type":"integer","maximum":2100,"minimum":1990,"description":"Calendar year of the par yield curve (default current)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","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.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eLGzi3iOf-1MRKN2XXOGb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches US Treasury par yield curve and average outstanding-debt interest rates for a given year, computing the 2s10s spread and a yield-curve inversion flag.","exampleAgentPrompt":"What does the US Treasury yield curve look like right now — give me the par yields, the 2s10s spread, and tell me whether it's inverted.","exampleUseCases":[{"title":"Macro dashboard inversion alert","prompt":"Pull today's Treasury par yield curve and tell me if the 2s10s spread is negative — I want to know whether the curve is inverted right now."},{"title":"Historical yield curve snapshot","prompt":"Get me the full Treasury par yield curve and average outstanding-debt rates for 2022 so I can compare last year's rate environment to today."},{"title":"Fixed-income research briefing","prompt":"What's the current 2-year vs 10-year Treasury yield spread, and is the yield curve inverted? I need the full par curve and the inversion flag for my morning briefing."}],"resultDescription":"Returns a fused dataset combining the Daily Treasury Par Yield Curve (maturities from 1-month to 30-year) with average interest rates on outstanding US debt broken down by security type, along with a computed 2s10s spread value and a boolean inversion flag. Falls back gracefully to average debt rates if the par yield curve upstream is unavailable.","failureModes":["Requested year out of range (below 1990 or above 2100) — validation error","Par yield curve upstream unavailable — endpoint degrades gracefully to average rates only","No data available for a future or very recent year not yet published by Treasury","Network timeout reaching Treasury data source — may return partial or cached data"],"whenToPreferThis":"Choose this endpoint when you need authoritative US Treasury interest rate data — particularly the par yield curve combined with average outstanding-debt rates — in a single call, without having to parse raw Treasury XML/CSV feeds yourself. It is especially useful when you need the 2s10s spread or inversion flag pre-computed. Prefer it over generic financial data APIs when you want official government source fidelity and resilient fallback behavior.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:42:10.267Z","isFirstParty":false,"canonicalSlug":"treasury-rates-4ecbd214"}