index_history
Retrieve historical point values for Tehran and Fara Bourse indices, with daily closes, change percentages, drawdown, volatility, and optional intraday five-minute data for range analysis.
Instructions
History of any index (تاریخچه شاخص) in index points, not rial: the total index (شاخص کل) back to 2008, equal-weight, free-float, any industry index such as فلزات or بانک, and the Fara Bourse indices. Rows ascending with close, low, high and daily change %, plus a summary of the whole requested range: change %, highest and lowest close with dates, maximum drawdown, up/down days and a volatility estimate. Days the market was closed are flagged flat and kept out of the statistics. With intraday=true: today's 5-minute path with day high/low and the previous close.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"index": "<index>"
},
"name": "index_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Index name or fragment: 'شاخص کل', 'شاخص کل (هم وزن)', 'شاخص آزاد شناور', 'فلزات', 'بانک', 'شاخص کل فرابورس' (English: total, equal_weight, fara), an industry code such as 27, or an insCode from the indices tool. A fragment that matches several indices is an error that lists them. | |
| limit | No | Most rows to return (default 120). Longer ranges are thinned by granularity, or cut to the newest rows (max 500) | |
| to_date | No | Range bound: Gregorian 2026-11-03 / 20261103 or Jalali 1405/08/12. Omit for no bound. | |
| intraday | No | True: today's 5-minute path of the index (روند شاخص در روز) instead of daily history; dates and granularity are ignored | |
| from_date | No | Range bound: Gregorian 2026-11-03 / 20261103 or Jalali 1405/08/12. Omit for no bound. | |
| granularity | No | 'auto' (default: daily rows if the range fits limit, else weekly, monthly, quarterly or yearly closes), 'daily', 'weekly' (Saturday-start), 'monthly', 'quarterly' or 'yearly' (Jalali) | auto |