QuantSet Docs Developer console

FMP endpoint reference / Stable

Treasury rates

GET/stable/treasury-rates

FMP OpenAPI schema · View as Markdown

Example request

curl https://api.quantset.dev/stable/treasury-rates -H 'apikey: YOUR_QUANTSET_API_KEY'

Parameters

Authenticate with a QuantSet API key in the apikey header or query parameter.

NameLocationTypeRequiredDefault
fromquerystring (date)No—
toquerystring (date)No—
limitqueryinteger, 1 to 20,000No10000
formatqueryjson, csvNo"json"
snapshot_idquerystringNo—

Data coverage

The route uses published daily US Treasury yield observations. Unavailable maturities remain null.

JSON shape

Angle brackets indicate types. Arrays show one item. See the schema for all constraints.

[
  {
    "date": "<string | null>",
    "month1": "<number | null>",
    "month2": "<number | null>",
    "month3": "<number | null>",
    "month6": "<number | null>",
    "year1": "<number | null>",
    "year2": "<number | null>",
    "year3": "<number | null>",
    "year5": "<number | null>",
    "year7": "<number | null>",
    "year10": "<number | null>",
    "year20": "<number | null>",
    "year30": "<number | null>"
  }
]
Response schema
{
  "type": "array",
  "items": {
    "properties": {
      "date": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Date"
      },
      "month1": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "title": "Month1"
      },
      "month2": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "title": "Month2"
      },
      "month3": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "title": "Month3"
      },
      "month6": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "title": "Month6"
      },
      "year1": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "title": "Year1"
      },
      "year2": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "title": "Year2"
      },
      "year3": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "title": "Year3"
      },
      "year5": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "title": "Year5"
      },
      "year7": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "title": "Year7"
      },
      "year10": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "title": "Year10"
      },
      "year20": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "title": "Year20"
      },
      "year30": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "title": "Year30"
      }
    },
    "additionalProperties": false,
    "type": "object",
    "title": "FmpStableTreasury"
  },
  "title": "Response Stable Treasury Stable Treasury Rates Get"
}