{"uid":"cap_uGjA8n_pbinz41OQZ2yXu","slug":"x402stock-treasury-yields-98bb53e0","name":"x402stock Treasury Yields","description":"The daily US Treasury par yield curve (Constant Maturity Treasury rates) for every maturity from 1 month to 30 years, in percent. Defaults to the latest published day; pass `?limit=` for more recent days (max 250) and `?year=YYYY`. No ticker needed. Use for the risk-free rate, rate-sensitivity context, and yield-curve inversion in macro-aware analysis. From x402stock","url":"https://agents.x402stock.xyz/api/v1/treasury-yields?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","properties":{"year":{"type":"integer","maximum":2100,"minimum":1990},"limit":{"type":"integer","default":1,"maximum":250,"exclusiveMinimum":0}}}},"additionalProperties":false}}},"responseSchema":{"type":"object","required":["source","as_of","series","unit","maturities","count","rates"],"properties":{"unit":{"type":"string"},"as_of":{"anyOf":[{"type":"string"},{"type":"null"}]},"count":{"type":"number"},"rates":{"type":"array","items":{"type":"object","required":["date","rates"],"properties":{"date":{"type":"string"},"rates":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"additionalProperties":false}},"series":{"type":"string"},"source":{"type":"string","const":"us_treasury"},"maturities":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.92","successRate":"1.00","reviews":1,"stars":"4.7","state":"rated"},"availabilityStatus":"healthy","priceObserved":{"p10Cents":"1.0000","medianCents":"1.0000","p90Cents":"1.0000","minCents":"1.0000","maxCents":"1.0000","p95Cents":"1.0000","sampleCount":4,"varies":false,"failureChargeRate":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"},{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JFd4p55CCMdnet-lS0K9W","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_2Io6KezNQLuqld_3WFRAZ","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x20C000000000000000000000b9537d11c60E8b50","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves US Treasury yield data (yield curve, rates by maturity) for use by AI agents, paid per request in USDC via x402.","exampleAgentPrompt":"Can you pull the current US Treasury yield curve — I want to see rates across all maturities from 1-month to 30-year?","exampleUseCases":[{"title":"Yield curve inversion monitoring","prompt":"Check the current US Treasury yields and tell me if the yield curve is inverted — specifically compare the 2-year and 10-year rates."},{"title":"Risk-free rate for DCF model","prompt":"What's the current 10-year US Treasury yield? I need it as the risk-free rate for my discounted cash flow valuation."},{"title":"Macro rate environment briefing","prompt":"Give me a snapshot of today's Treasury yields across the major maturities — 3-month, 2-year, 5-year, 10-year, and 30-year — so I can assess the current rate environment."}],"resultDescription":"Returns US Treasury yield data across maturities (e.g. 1-month, 3-month, 6-month, 1-year, 2-year, 5-year, 7-year, 10-year, 20-year, 30-year), including current rates and potentially historical time series, enabling yield curve analysis and macro research.","failureModes":["Insufficient USDC balance causes payment failure and blocked response","Invalid or malformed properties filter returns 400 error","Data temporarily unavailable from upstream source returns 503","Rate limiting if too many rapid successive calls"],"whenToPreferThis":"Choose this endpoint when you need authoritative US Treasury yield data for macro analysis, bond market research, risk-free rate inputs, or yield curve monitoring — particularly in an agent workflow that can pay autonomously per call in USDC without requiring API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":4,"lastUsedAt":"2026-10-02T00:53:28.688Z","lastSuccessfullyRanAt":"2026-10-02T00:53:28.688Z","lastHealthCheckAt":"2026-10-03T06:21:06.053Z","isFirstParty":false,"canonicalSlug":"x402stock-treasury-yields-98bb53e0"}