Convert currency at TCMB rates
convert_currencyConvert amounts between TRY and TCMB-listed currencies, or two foreign currencies via TRY, using official central-bank rates for a chosen date and rate type.
Instructions
Convert an amount between TRY and any currency in the TCMB bulletin (or between two foreign currencies via TRY) using official TCMB rates for a date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target currency, e.g. TRY or EUR | |
| date | No | YYYY-MM-DD; omit for latest | |
| from | Yes | Source currency, e.g. USD or TRY | |
| amount | Yes | Amount to convert | |
| rate_type | No | Default forex_selling (the rate commonly used for invoices) |