Price history and statistics
get_price_historyFetch historical OHLCV bars and performance statistics for NSE stocks, indices, or SENSEX to evaluate trends, risk, and returns.
Instructions
Historical OHLCV bars plus total return, CAGR, annualised volatility, max drawdown, period high/low, moving averages (20/50/200-day), RSI and dividends/splits. Statistics use adjusted prices.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Lookback window. | 1y |
| symbol | Yes | NSE stock symbol, NSE index name ('NIFTY 50', 'NIFTY IT'), 'SENSEX' or a Yahoo ticker. | |
| max_bars | No | Most recent bars to return. | |
| bar_interval | No | Bar size for the returned OHLCV rows. 'auto' keeps the table short. | auto |