convert_currency
Convert currency amounts using official NBP mid-market rates, supporting PLN and foreign currencies with optional historical date for accurate conversions.
Instructions
Convert an amount between PLN and another currency, or between two foreign currencies (via PLN as the pivot), using official NBP mid-market rates.
Args: amount: The amount to convert. from_currency: Source currency ISO code (e.g. "PLN", "EUR"). to_currency: Target currency ISO code (e.g. "GBP", "PLN"). date: Optional ISO date (YYYY-MM-DD) for historical rates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| amount | Yes | ||
| to_currency | Yes | ||
| from_currency | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |