Skip to main content
GET
/
v1
/
macro
/
treasury-rates
Get Treasury Rates
curl --request GET \
  --url https://data-tools.prd.arrays.org/api/v1/macro/treasury-rates \
  --header 'X-API-Key: <api-key>'
{
  "data": [
    {
      "date": "<string>",
      "month1": 123,
      "month2": 123,
      "month3": 123,
      "month6": 123,
      "year1": 123,
      "year10": 123,
      "year2": 123,
      "year20": 123,
      "year3": 123,
      "year30": 123,
      "year5": 123,
      "year7": 123
    }
  ],
  "error": {
    "code": "RESOURCE_NOT_FOUND",
    "details": [
      {
        "field": "<string>",
        "got": "<string>",
        "reason": "<string>"
      }
    ],
    "docs_url": "<string>",
    "examples": [
      "<string>"
    ],
    "hint": "<string>",
    "message": "The requested resource was not found.",
    "suggestions": [
      "<string>"
    ]
  },
  "pagination": "<unknown>",
  "request_id": "<string>",
  "success": true
}

Authorizations

X-API-Key
string
header
required

API Key authentication. Example: "your-api-key-here"

Query Parameters

start_time
integer<int64>

Start time (Unix timestamp in seconds)

end_time
integer<int64>

End time (Unix timestamp in seconds)

Response

Success

data
object[]
error
object
pagination
any
request_id
string
success
boolean