Api Endpoint

x402stock.vercel.app

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

Open interactive test console

Offering

Provider
x402stock.vercel.app
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Financial Analysis
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402stock.vercel.app/api/v1/treasury-yields
MIME type
application/json
First seen
2026-10-16T01:54:06.400Z
Last seen
Tags
None supplied

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0x3070Fbb3803819fB5BdfE9286fdc6325A877fA85"
  }
]

Observed health

Status
Healthy
Latest latency
127 ms
Average latency
333 ms
HTTP status
402
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "HEAD",
        "DELETE"
      ]
    },
    "queryParams": {
      "type": "object",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "properties": {
        "limit": {
          "default": 1,
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 250
        },
        "year": {
          "type": "integer",
          "minimum": 1990,
          "maximum": 2100
        }
      },
      "required": [
        "limit"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET",
            "HEAD",
            "DELETE"
          ],
          "type": "string"
        },
        "queryParams": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "limit": {
              "default": 1,
              "exclusiveMinimum": 0,
              "maximum": 250,
              "type": "integer"
            },
            "year": {
              "maximum": 2100,
              "minimum": 1990,
              "type": "integer"
            }
          },
          "required": [
            "limit"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "as_of": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "count": {
              "type": "number"
            },
            "maturities": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "rates": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "date": {
                    "type": "string"
                  },
                  "rates": {
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "propertyNames": {
                      "type": "string"
                    },
                    "type": "object"
                  }
                },
                "required": [
                  "date",
                  "rates"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "series": {
              "type": "string"
            },
            "source": {
              "const": "us_treasury",
              "type": "string"
            },
            "unit": {
              "type": "string"
            }
          },
          "required": [
            "source",
            "as_of",
            "series",
            "unit",
            "maturities",
            "count",
            "rates"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}