NBP currency rate vs PLN
nbp_exchange_rateGet the official NBP rate for one currency against PLN (Polish złoty) — the latest rate by default, or the rate in force on a historical date. Tables 'a'/'b' return the mid rate; table 'c' returns bid/ask. 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. Use nbp_rate_series for a multi-day history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Three-letter ISO 4217 currency code (e.g. USD, EUR, CHF). Case-insensitive. | |
| date | No | Optional historical date (YYYY-MM-DD). Omit for the latest rate. | |
| table | No | NBP table: 'a' (default) = official mid rates of ~35 major currencies, published every business day; 'b' = mid rates of ~115 less-traded currencies, published Wednesdays; 'c' = bid/ask (buy/sell) rates of major currencies, published every business day. | |
| no_cache | No | Force a fresh NBP fetch and bypass this server's result cache. Default false. |