Convert currency with TCMB rates
convert_currencyConverts an amount between two currencies using TCMB rates. TRY may be either side. Cross conversions (e.g. USD to EUR) go through TRY using the same rate_type on both legs. Returns the result (6 decimals), the effective rate and a calculation breakdown. Omit date for the latest bulletin. Source: Central Bank of the Republic of Türkiye (CBRT/TCMB) daily indicative bulletin, published on business days around 15:30 Türkiye time (UTC+3). Rates are TRY per unit of currency (JPY is per 100). Decimals are strings. Every result includes source_url, bulletin_date and a disclaimer; rates are indicative, not for official use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target currency, ISO 4217 (TRY allowed) | |
| date | No | Bulletin date, YYYY-MM-DD | |
| from | Yes | Source currency, ISO 4217 (TRY allowed) | |
| amount | Yes | Positive amount; a string like "1234.56" preserves precision | |
| rate_type | No | TCMB rate to use. forex_* are for transfers, banknote_* for cash; some currencies lack banknote rates. | forex_selling |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | Yes | ||
| query | Yes | ||
| result | Yes | ||
| source | Yes | ||
| disclaimer | Yes | ||
| source_url | Yes | ||
| bulletin_no | Yes | ||
| calculation | Yes | ||
| is_fallback | Yes | ||
| retrieved_at | Yes | ||
| bulletin_date | Yes | ||
| requested_date | Yes | ||
| fallback_reason | Yes | ||
| domestic_currency | Yes |