Index Level History
get_index_historyFetch historical OHLC and PE/PB/dividend yield data for a single NSE index. Analyze past levels and valuation trends for Nifty 50, Nifty Bank, or India VIX.
Instructions
Get 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.
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 |
|---|---|---|---|
| days | No | Alias for `interval`: a lookback in calendar days, mapped to the smallest served window that covers it. | |
| index | No | Alias for `index_name`. | |
| range | No | Alias for `interval`. | |
| symbol | No | Alias for `index_name`. | |
| 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. | |
| index_name | No | REQUIRED. Index name, e.g. 'Nifty 50', 'Nifty IT', 'Nifty Oil & Gas' |