Get TCMB rate history
get_rate_historyRetrieve historical TCMB exchange rates for a currency as a daily, weekly, or monthly time series, including summary statistics like min/max dates, mean, and percentage change.
Instructions
Time series of one currency's TCMB rate (TRY per 1 unit) with summary statistics: first/last, min/max with dates, mean and % change. Ranges: daily up to 93 days, weekly up to 731, monthly up to 3660.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes | ISO 4217 currency code, e.g. USD, EUR, GBP, JPY. TRY is allowed for conversions. | |
| end_date | No | Defaults to today. | |
| interval | No | daily | |
| rate_type | No | Which TCMB rate to use. forex_buying ('döviz alış') is the commonly quoted official rate. | forex_buying |
| start_date | Yes | Date as YYYY-MM-DD (Istanbul calendar). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stats | Yes | ||
| points | Yes | ||
| currency | Yes | ||
| interval | Yes | ||
| rate_type | Yes |