currency_convert
Convert an amount between major currencies using live, historical, or offline exchange rates. Returns the converted amount, exact cross-rate, provider, and timestamps.
Instructions
Convert an amount between major currencies with Decimal precision.
Supported: USD, EUR, GBP, JPY, CAD, AUD, CHF, CNY, INR. Returns the converted amount, exact cross-rate, provider, and timestamps.
Rates: static offline table by default. A date (YYYY-MM-DD) or live=true
uses live/historical ECB rates (frankfurter.app); on any network failure the
server falls back to static rates with a warning note.
Args:
amount: Amount in from_currency (>= 0).
from_currency: Source ISO 4217 code.
to_currency: Target ISO 4217 code.
date: Optional historical date (YYYY-MM-DD) -> live provider.
live: Force live (true) or static (false); null = auto.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| live | No | ||
| amount | Yes | ||
| to_currency | Yes | ||
| from_currency | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||