Convert an amount
convertConvert currency amounts between any two ECB-quoted currencies, optionally using a historical date. Returns the converted amount, cross rate, and rounding applied.
Instructions
Call this tool to convert an amount between any two ECB-quoted currencies, today or on a past date. Returns the converted amount, the cross rate to 6 decimals, the rounding applied and the rate date used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Currency to convert into; defaults to the shared business profile's default_currency, so you are never asked what currency you invoice in. The result is rounded once, at the end, to this currency's own ISO 4217 minor units, so JPY comes back whole and BHD to three places | |
| date | No | ISO date YYYY-MM-DD. Omit for the latest published rate. A weekend or TARGET holiday falls back to the last rate published on or before it, and the answer says so. A date older than the free 90-day window is shortened to the oldest free day, not refused, and the answer names the date it really used | |
| from | Yes | Currency the amount is in. Cross rates go through the euro, the only pair the ECB publishes | |
| amount | Yes | Amount in major units of the from currency, e.g. 100 or 12.34 |