nse_historical
Fetch historical OHLCV price data for NSE stocks. Customize period (1 day to 10 years) and interval (1 minute to monthly). Get summary stats like return, high, low, and average volume.
Instructions
Get historical price data (OHLCV) for an NSE stock.
Returns open, high, low, close, volume data for the specified period. Also includes summary stats: period return %, high, low, avg volume.
Args: symbol: NSE stock symbol (e.g., RELIANCE, TCS, INFY) period: Time period. Options: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max interval: Data interval. Options: 1m, 5m, 15m, 30m, 1h, 1d, 5d, 1wk, 1mo Note: 1m data only available for last 7 days
Examples: nse_historical("RELIANCE", "1mo", "1d") → 1 month daily data nse_historical("TCS", "1y", "1wk") → 1 year weekly data nse_historical("INFY", "5y", "1mo") → 5 year monthly data nse_historical("SBIN", "5d", "15m") → 5 day intraday (15min candles)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | 1mo | |
| symbol | Yes | ||
| interval | No | 1d |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |