get_historical
Retrieve historical OHLCV price data for Saudi stocks by specifying symbol and date range. Supports daily, weekly, monthly, or intraday intervals for analysis.
Instructions
Get historical OHLCV price data for a Saudi stock over a date range. Use this when the user asks for past prices, price trends, or chart-style historical data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Requires exact exchange symbol. If the user provides a company name, first use companies_list. If a previous tool result included resolved_instrument.symbol, reuse that symbol. Example: '1120'. | |
| to_date | No | End date in YYYY-MM-DD format (default: today) | |
| interval | No | '1d' for daily, '1w' for weekly, '1m' for monthly, '30m' for 30-minute, or '60m' for 60-minute bars (default: '1d') | |
| from_date | No | Start date in YYYY-MM-DD format (default: 30 days ago) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||