convert_currency
Convert an amount between any two currencies using daily ECB exchange rates. Get the converted result, current rate, and date.
Instructions
Convert an amount between any two currencies.
Uses ECB (European Central Bank) rates updated daily via frankfurter.dev. Rates are cached for 1 hour to minimize latency.
Args: amount: The amount to convert (e.g. 100.0) from_currency: ISO 4217 source currency code (e.g. "USD", "EUR", "GBP") to_currency: ISO 4217 target currency code (e.g. "JPY", "CAD", "CHF")
Returns: dict with keys: amount, from, to, result, rate, date, cost_usd
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| to_currency | Yes | ||
| from_currency | Yes |