Currency rate history
cb_rate_historyRetrieve official CBI exchange-rate history for one currency over time, including sampled date ranges and total change, to analyze currency trends and compare periods.
Instructions
Get the official CBI rate of one currency over time, oldest first, with the total change.
Without dates: the last 7 published days. With from_date: samples every step_days up to to_date (default today), at most 20 points, so use step_days 7 for months or 30 for years. Rials per currency unit.
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": {
"currency": "<currency>"
},
"name": "cb_rate_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_date | No | Date as 1404/01/01 (Jalali, year below 1700) or 2025-03-21 (Gregorian). Default: latest. | |
| currency | Yes | ISO code, e.g. USD. | |
| from_date | No | Date as 1404/01/01 (Jalali, year below 1700) or 2025-03-21 (Gregorian). Default: latest. | |
| step_days | No | Days between points (1-90). |