Convert an amount between currencies
convert_currencyConvert an amount between currencies using the latest exchange rate or a specific past date, returning the rate used and converted amount.
Instructions
Converts an amount from one currency to another using the latest rate, or the rate on a past date if 'date' is given. Returns the rate used, the given amount, and the converted amount. Starter plan and above (any paid plan).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Currency code to convert to, e.g. 'EUR'. | |
| date | No | Optional past date (YYYY-MM-DD) to convert at that day's rate instead of the latest rate. | |
| from | Yes | Currency code to convert from, e.g. 'USD'. | |
| amount | No | Amount to convert. Must be greater than 0. Default is 1.0. |