ToolAssay

Use when an agent needs the official US Treasury par yield curve for a day or a

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

Answeringour last check, 2026-11-26
7 of 7checks answered this week
28 msmedian answer time
$0.003listed price per call
$0.003price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

GET https://1gateway.dev/v1/macro/treasury-curve

CategoryEverything else
Provider host1gateway.dev
Networkseip155:137, eip155:143, eip155:42161, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
Payment schemesexact
Self-reported calls, 30 days7 from 2 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-11-26 valid payment request 402$0.003 49 ms
2026-11-25 valid payment request 402$0.003 32 ms
2026-11-24 valid payment request 402$0.003 28 ms
2026-11-23 valid payment request 402$0.003 29 ms
2026-11-22 valid payment request 402$0.003 27 ms
2026-11-21 valid payment request 402$0.003 24 ms
2026-11-20 valid payment request 402$0.003 18 ms
2026-11-19 valid payment request 402$0.003 37 ms
2026-11-18 valid payment request 402$0.003 28 ms
2026-11-17 valid payment request 402$0.003 25 ms
2026-11-16 valid payment request 402$0.003 27 ms
2026-11-15 valid payment request 402$0.003 37 ms
2026-11-14 valid payment request 402$0.003 25 ms
2026-11-13 valid payment request 402$0.003 20 ms
2026-11-12 valid payment request 402$0.003 24 ms
2026-11-11 valid payment request 402$0.003 28 ms
2026-11-10 valid payment request 402$0.003 17 ms
2026-11-09 valid payment request 402$0.003 22 ms
2026-11-08 valid payment request 402$0.003 17 ms
2026-11-07 valid payment request 402$0.003 27 ms
2026-11-06 valid payment request 402$0.003 30 ms

Example input (from the provider)

{
  "method": "GET",
  "queryParams": {
    "date": "2026-11-04",
    "days": 5
  },
  "type": "http"
}

Promised output schema (from the provider)

{
  "$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 \u2192 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"
}

This page as JSON