# Treasury rates

`GET /stable/treasury-rates`

[FMP OpenAPI schema](https://api.quantset.dev/openapi/fmp.json)

## Example request

```bash
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.

| Name | Location | Type | Required | Default |
| --- | --- | --- | --- | --- |
| `from` | query | string (date) | No | — |
| `to` | query | string (date) | No | — |
| `limit` | query | integer, 1 to 20,000 | No | 10000 |
| `format` | query | json, csv | No | "json" |
| `snapshot_id` | query | string | No | — |

## 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.

```json
[
  {
    "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

```json
{
  "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"
}
```
