{"slug":"1gateway-dev-v1-macro-treasury-curve-7e34b0","title":"Use when an agent needs the official US Treasury par yield curve for a day or a ","host":"1gateway.dev","method":"GET","resource":"https://1gateway.dev/v1/macro/treasury-curve","category":"other","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 ","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":28,"reported_calls_30d":7,"reported_payers_30d":2,"networks":["eip155:137","eip155:143","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"date":"2026-11-04","days":5},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"additionalProperties":false,"properties":{"date":{"description":"Curve date YYYY-MM-DD (default latest published; no curve that day → previous business day)","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"days":{"description":"Business days of history ending at date (default 1)","maximum":366,"minimum":1,"type":"integer"}},"required":[],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":true,"properties":{"asOf":{"type":"string"},"change":{"additionalProperties":true,"properties":{"2s10sBp":{"type":"integer"},"from":{"type":"string"},"tenYearBp":{"type":"integer"},"to":{"type":"string"},"twoYearBp":{"type":"integer"}},"type":["object","null"]},"exactDate":{"type":"null"},"history":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"inverted":{"additionalProperties":true,"properties":{"2s10s":{"type":"boolean"},"3m10y":{"type":"boolean"}},"type":"object"},"latest":{"additionalProperties":true,"properties":{"date":{"type":"string"},"spreads":{"additionalProperties":true,"type":"object"},"yields":{"additionalProperties":true,"type":"object"}},"type":"object"},"query":{"additionalProperties":true,"properties":{"date":{"type":"null"},"days":{"type":"integer"}},"type":"object"},"unit":{"type":"string"}},"required":["query","asOf","exactDate","unit","latest","change","inverted","history"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":49,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":32,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":28,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":29,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":27,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":24,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":18,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":37,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":28,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":25,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":27,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":37,"error":null},{"day":"2026-11-14","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":25,"error":null},{"day":"2026-11-13","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":20,"error":null},{"day":"2026-11-12","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":24,"error":null},{"day":"2026-11-11","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":28,"error":null},{"day":"2026-11-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":17,"error":null},{"day":"2026-11-09","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":22,"error":null},{"day":"2026-11-08","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":17,"error":null},{"day":"2026-11-07","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":27,"error":null},{"day":"2026-11-06","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":30,"error":null}],"description_full":"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","last_updated":"2026-11-26T04:31:00.434Z","schemes":["exact"]}