Price history
br_historyFetch stock price history from Mofid OHLC candles or Agah daily rows, including buy/sell flows, for symbols, indices, funds, and options.
Instructions
Return price history of a stock: Mofid OHLC candles (1 minute to weekly) or Agah daily rows with buy and sell flows.
Mofid candles are oldest first, Tehran time, and work for indices, funds and options too. Agah rows have no OHLC. Prices are Rial. Use br_index for index history.
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": {
"symbol": "<symbol>"
},
"name": "br_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Mofid: calendar days back. | |
| limit | No | Newest N rows (Agah: at most 250). | |
| source | No | mofid = OHLC candles; agah = daily rows with real/legal flows; all = both. | mofid |
| symbol | Yes | Symbol, company name part, or ISIN. Mofid also takes index, fund and option ISINs. | |
| adjusted | No | Mofid: adjust prices for capital increases and dividends. | |
| resolution | No | Candle size: minutes, '1D' or '1W'. Agah has only '1D'. | 1D |