Daily rate history (تاریخچهٔ روزانهٔ نرخ)
get_historyDaily Tehran open-market closing rate of a currency in Toman, with Gregorian and Jalali (Persian calendar) dates. Give days (back from today) or from/to (YYYY-MM-DD, Gregorian or Jalali such as 1404-01-01). Without a key: the last 365 days; a Pro FX API key reaches the whole archive (the dollar back to 1360 / 1981). At most 400 points per call; longer windows are sampled. نرخ پایانی روزانهٔ بازار آزاد با تاریخ شمسی و میلادی.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End day, YYYY-MM-DD, Gregorian or Jalali. Default: today. | |
| code | Yes | ISO 4217 code, e.g. USD, EUR, AED, TRY, GBP, CNY, IQD. | |
| days | No | Days back from today (default 30). Ignored when `from` is given. | |
| from | No | Start day, YYYY-MM-DD, Gregorian or Jalali. |