get_stock_price_history
Retrieve OHLCV price history for NSE/BSE Indian stocks using daily, weekly, or monthly bars. Select periods up to max to analyze past performance, with results capped at 500 bars for manageable data.
Instructions
Get OHLCV price history for an NSE/BSE-listed Indian equity.
Intraday intervals aren't supported (out of scope for a fundamentals
tool, and Yahoo restricts them to short windows anyway). Capped at 500
bars -- if a period/interval combination would return more, the oldest
are dropped and truncated is set.
:param symbol: ticker symbol, e.g. "RELIANCE", "TCS.NS", or "TCS.BO"
:param period: how far back: 1mo, 3mo, 6mo, 1y, 2y, 5y, or max
:param interval: bar size: 1d, 1wk, or 1mo
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | 1y | |
| symbol | Yes | ||
| interval | No | 1d |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | Yes | ||
| symbol | Yes | ||
| currency | No | ||
| interval | Yes | ||
| truncated | No | True if more bars were available than the 500-bar cap and the oldest were dropped |