Index Level History
get_index_historyGet the historical LEVEL series (OHLC + PE/PB/dividend yield) for a single NSE INDEX — Nifty 50, Nifty Bank, Nifty IT, Nifty Oil & Gas, India VIX, and ~140 more. Official NSE index data. Use for 'what did Nifty IT close at on ', 'Nifty Bank level history', 'India VIX over the last month', or index valuation trend. This is the INDEX counterpart of get_price_history (which handles individual stocks only). To rank or compare MULTIPLE indices by return, use get_index_performance instead. Over the size limit the newest bars are returned (data.page); while meta.window.has_more, pass meta.window.next_cursor as end_date. count/from/change_pct cover the whole window, ending at end_date when given.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_index_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Alias for `index_name`. | |
| days | No | Alias for `interval`: a lookback in calendar days, mapped to the smallest served window that covers it. | |
| slug | No | Alias for `index_name`. | |
| index | No | Alias for `index_name`. | |
| range | No | Alias for `interval`. | |
| symbol | No | Alias for `index_name`. | |
| end_date | No | Inclusive end, YYYY-MM-DD (default: latest). Paging cursor. | |
| interval | No | LOOKBACK window, one of 1m, 3m, 6m, 1y, 2y, max (default 3m). Bars are daily up to 1y, weekly for 2y/max. Not a bar size: intraday is not served. | |
| identifier | No | Alias for `index_name`. | |
| index_code | No | Alias for `index_name`. | |
| index_name | No | REQUIRED. Index name, e.g. 'Nifty 50', 'Nifty IT', 'Nifty Oil & Gas' | |
| index_slug | No | Alias for `index_name`. | |
| index_symbol | No | Alias for `index_name`. | |
| index_identifier | No | Alias for `index_name`. |