convert
Exchange an amount from one currency to another at the ECB reference rate. Returns the resulting amount, applied rate, and rate date; uses the prior published working day for weekends or holidays.
Instructions
Convert an amount from one currency to another at the ECB reference rate.
Returns the converted amount, the rate applied and the date it was published (rate_date).
ECB reference rates publish on working days only: if date falls on a weekend or a holiday,
the most recent working day's rate is used instead, and note explains the substitution in
plain language.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date to use for the exchange rate, as YYYY-MM-DD. Omit to use the latest available rate. | |
| amount | Yes | Amount of money to convert, in from_currency units. Must be positive. | |
| to_currency | Yes | Currency to convert to, as a 3-letter ISO 4217 code, e.g. 'EUR'. | |
| from_currency | Yes | Currency to convert from, as a 3-letter ISO 4217 code, e.g. 'USD'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| rate | Yes | ||
| amount | Yes | ||
| converted | Yes | ||
| rate_date | Yes | ||
| to_currency | Yes | ||
| from_currency | Yes |