Convert currency at TCMB rates
convert_currencyConvert amounts between TRY and other currencies, or cross foreign currencies, using official TCMB rates. Specify a date or use the latest bulletin.
Instructions
Convert an amount between TRY and any TCMB currency, or between two foreign currencies (cross rate via TRY). Uses the bulletin for date, or the latest one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ISO 4217 currency code, e.g. USD, EUR, GBP, JPY. TRY is allowed for conversions. | |
| date | No | Date as YYYY-MM-DD (Istanbul calendar). | |
| from | Yes | ISO 4217 currency code, e.g. USD, EUR, GBP, JPY. TRY is allowed for conversions. | |
| amount | Yes | ||
| rate_type | No | Which TCMB rate to use. forex_buying ('döviz alış') is the commonly quoted official rate. | forex_buying |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| date | Yes | ||
| from | Yes | ||
| rate | Yes | ||
| amount | Yes | ||
| result | Yes | ||
| rate_type | Yes | ||
| requested_date | Yes |