Get index bars (SPX, NDX, VIX, ...)
get_indexAnswers 'what did the S&P 500 (or VIX) do?' Give a symbol (index, e.g. SPX, NDX, VIX, RUT, DXY) and optionally interval (1min, 5min, 15min, 30min, 1hour or 1day, default 1day) plus start and end. Returns OHLC bars, times in US Eastern, clipped to as_of. Covers 123 indexes: S&P 500, Nasdaq-100, Dow, Russell 2000, VIX and its term structure, sector and style indexes, DAX, AEX, the dollar index and Treasury yield indexes. Free keys get daily bars for the last 12 months; paid keys get every bar size.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "get_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| as_of | No | Point-in-time cutoff (YYYY-MM-DD). Nothing dated after this is returned, preventing look-ahead bias. Defaults to today (UTC). | |
| start | No | ||
| symbol | Yes | Index symbol, e.g. SPX, NDX, VIX, RUT, DXY. | |
| interval | No |