{"uid":"cap_9OM0BPeQBQ4Dr1zf_rhSW","slug":"us-treasury-yield-curve-673e739c","name":"US Treasury Yield Curve","description":"Use when an agent needs the official US Treasury par yield curve for a day or a recent stretch. Input: optional date (YYYY-MM-DD, default latest), days (1-366 history ending at date). Output: JSON yields per tenor (1m to 30y, percent), 2s10s and 3m10y spreads in bp, inversion flags, change over the range, history. Weekend or holiday dates fall back to the prior business day. Example: ?days=5","url":"https://1gateway.dev/v1/macro/treasury-curve?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":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Curve date YYYY-MM-DD (default latest published; no curve that day → previous business day)"},"days":{"type":"integer","maximum":366,"minimum":1,"description":"Business days of history ending at date (default 1)"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["query","asOf","exactDate","unit","latest","change","inverted","history"],"properties":{"asOf":{"type":"string"},"unit":{"type":"string"},"query":{"type":"object","properties":{"date":{"type":"null"},"days":{"type":"integer"}},"additionalProperties":true},"change":{"type":["object","null"],"properties":{"to":{"type":"string"},"from":{"type":"string"},"2s10sBp":{"type":"integer"},"tenYearBp":{"type":"integer"},"twoYearBp":{"type":"integer"}},"additionalProperties":true},"latest":{"type":"object","properties":{"date":{"type":"string"},"yields":{"type":"object","additionalProperties":true},"spreads":{"type":"object","additionalProperties":true}},"additionalProperties":true},"history":{"type":"array","items":{"type":"object","additionalProperties":true}},"inverted":{"type":"object","properties":{"2s10s":{"type":"boolean"},"3m10y":{"type":"boolean"}},"additionalProperties":true},"exactDate":{"type":"null"}},"additionalProperties":true}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_h1gL_z8kEnneOm7_CdKnE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the official US Treasury par yield curve for a specified date or recent date range, including per-tenor yields, spreads, inversion flags, and historical changes.","exampleAgentPrompt":"Pull the US Treasury par yield curve for the last 5 business days and tell me if the 2s10s or 3m10y spread is inverted, and by how many basis points.","exampleUseCases":[{"title":"Daily yield curve inversion monitor","prompt":"Check today's US Treasury yield curve and tell me whether it's currently inverted on the 2s10s or 3m10y spread, and give me the exact spread in basis points."},{"title":"Weekly macro briefing for portfolio review","prompt":"Get me the Treasury par yield curve for the past 5 business days — I want to see how the 2-year and 10-year yields have moved and whether the inversion deepened or eased."},{"title":"Historical curve snapshot for a specific date","prompt":"What did the US Treasury yield curve look like on March 15, 2024? Give me all the tenors from 1-month to 30-year and the 2s10s spread for that day."}],"resultDescription":"A JSON object containing: the queried date and actual curve date (adjusted for weekends/holidays), yields for all standard Treasury tenors (1m, 2m, 3m, 4m, 6m, 6w, 1y, 2y, 3y, 5y, 7y, 10y, 20y, 30y) in percent, 2s10s and 3m10y spreads in basis points, inversion flags, change in key yields and spreads over the requested date range, and a history array of daily curve snapshots.","failureModes":["Invalid date format returns an error — must be YYYY-MM-DD","Days value outside 1-366 returns a validation error","Dates with no Treasury data (very old dates) may return empty or error","Weekend/holiday dates silently fall back to the prior business day, which may surprise callers expecting an exact date match","Network or upstream Treasury data unavailability may cause stale or cached responses (cached flag in response indicates this)"],"whenToPreferThis":"Use this endpoint when you need official US Treasury par yield curve data for macro analysis, fixed-income research, or monitoring yield curve inversions. It is preferable over general financial data APIs when you specifically need the official Treasury par yields across all standard tenors with pre-computed spread and inversion metrics, and when you need up to a year of daily history without building your own aggregation layer.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-22T06:30:24.290Z","isFirstParty":false,"canonicalSlug":"us-treasury-yield-curve-673e739c"}