Convert currencies via NBP rates
nbp_convertConvert an amount between two currencies using official NBP mid rates, cross-rated through PLN. Supports PLN and every currency NBP quotes: table A is used first and table B (exotic currencies, published Wednesdays) is consulted automatically for codes A doesn't carry — each side of the response shows the rate, table and effectiveDate used. Latest rates by default, or historical with date. NBP publishes only on Polish business days — on weekends/holidays the request falls back to the most recent preceding publication; effectiveDate in the response shows the date actually used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target currency code (e.g. EUR, PLN). Case-insensitive. | |
| date | No | Optional historical date (YYYY-MM-DD). Omit for the latest rates. | |
| from | Yes | Source currency code (e.g. USD, PLN). Case-insensitive. | |
| amount | Yes | Amount in the source currency to convert. | |
| no_cache | No | Force a fresh NBP fetch and bypass this server's result cache. Default false. |