moneycontrol_get_history
Fetch historical OHLCV price bars for NSE stocks. Supports daily, weekly, monthly, and intraday intervals.
Instructions
Get historical OHLCV price bars for an NSE stock (daily/weekly/monthly or intraday).
Args: params (HistoryInput): - symbol (str): NSE trading symbol (e.g. 'RELIANCE', 'HDFCBANK') or company name. - interval (str): 1m, 5m, 15m, 30m, 1h, daily (default), weekly, monthly. - count (int): Number of most-recent bars (1-500, default 30). - response_format (ResponseFormat): 'markdown' or 'json'.
Returns: str: Bars ordered oldest → newest. Each bar (JSON mode): {"time": str, "open": float, "high": float, "low": float, "close": float, "volume": float} JSON mode wraps them as {"symbol", "ticker", "interval", "count", "bars": [...]}. Returns "Error: ..." on failure (e.g. no data at that resolution).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |