Skip to main content
GET
/
v1
/
macro
/
index
/
historical
Get Index Historical Data
curl --request GET \
  --url https://data-tools.prd.arrays.org/api/v1/macro/index/historical \
  --header 'X-API-Key: <api-key>'
{
  "data": [
    {
      "change": 6.25,
      "change_percent": 0.13,
      "close": 4756.5,
      "date": "2024-01-01",
      "high": 4765.89,
      "low": 4742.15,
      "open": 4750.25,
      "symbol": "^SPX",
      "volume": 1234567,
      "vwap": 4753.45
    }
  ],
  "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

symbol
string
required

Index symbol (e.g., ^SPX, ^DJI, ^IXIC or SPX, DJI, IXIC)

start_time
integer<int64>
required

Start time (Unix timestamp in seconds)

end_time
integer<int64>
required

End time (Unix timestamp in seconds)

Response

Successfully retrieved index historical data

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