{"uid":"cap_hk508Nk8nHbQLx022_Haj","slug":"us-treasury-yield-spread-7e5ccca8","name":"US Treasury Yield Spread","description":"Spread between two Treasury maturities (for example 2Y and 10Y) now and over recent days, with inverted/normal verdict.","url":"https://treasury-macro.x402tookit.com/us-yield-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":["short","long"],"properties":{"long":{"type":"string","description":"Longer maturity, same list"},"short":{"type":"string","description":"Shorter maturity: 1M 2M 3M 4M 6M 1Y 2Y 3Y 5Y 7Y 10Y 20Y 30Y"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"long":{"type":["null","string"]},"short":{"type":["null","string"]},"latest":{"type":["null","object"],"properties":{"date":{"type":["null","string"]},"long":{"type":["null","number"]},"short":{"type":["null","number"]},"spread":{"type":["null","number"]}}},"recent":{"type":["array","null"],"items":{"type":"object","properties":{"date":{"type":["null","string"]},"long":{"type":["null","number"]},"short":{"type":["null","number"]},"spread":{"type":["null","number"]}}}},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"sourceUrl":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"attribution":{"type":["null","string"]},"invertedDays":{"type":["null","number"]}}}}}}},"responseSchema":null,"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_RFFDNqpc_Iup13d1ue7ct","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 spread between two selected Treasury maturities (e.g. 2Y vs 10Y), with recent daily history and an inverted/normal curve verdict.","exampleAgentPrompt":"What's the current yield spread between the 2-year and 10-year Treasury, and is the curve inverted or normal right now?","exampleUseCases":[{"title":"Yield curve inversion monitoring","prompt":"Check the 2Y vs 10Y Treasury yield spread for me — is the curve still inverted, and how many days has it been inverted?"},{"title":"Recession signal research","prompt":"Pull the 3-month vs 10-year Treasury spread and tell me whether the curve is inverted or normal, along with the recent trend over the last few days."},{"title":"Long-end curve steepness check","prompt":"What's the current spread between the 5-year and 30-year Treasuries, and has it been widening or narrowing recently?"}],"resultDescription":"Returns the current spread value between the two specified Treasury maturities, individual yield levels for each maturity, a time series of recent daily spread readings, the number of days the curve has been inverted, a plain-language verdict (inverted vs normal), a summary explanation, and source attribution. May include a degraded flag and disclaimer if data is stale or partial.","failureModes":["Missing or invalid 'short' or 'long' query parameters returns an error","If 'short' maturity is longer than 'long' maturity, results may be semantically incorrect","Treasury data source unavailable may return degraded mode with stale data","Unsupported maturity codes (e.g. typos) cause validation failures","Network or payment (x402) failure prevents response"],"whenToPreferThis":"Use this endpoint when you need a focused, precomputed spread between exactly two Treasury maturities with an opinionated inverted/normal verdict and multi-day history. Prefer this over the full yield curve endpoint when you only care about a specific maturity pair (e.g. 2s10s or 3m10y) and want the inversion count and verdict included automatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:20:15.928Z","isFirstParty":false,"canonicalSlug":"us-treasury-yield-spread-7e5ccca8"}