get_rate
Fetch the NBP exchange rate for any currency against PLN. Choose table A (accounting mid-rate), B (rare currencies), or C (buy/sell). Optionally specify a date or use the latest available rate.
Instructions
Get the NBP exchange rate for a single currency vs PLN, on a specific date or the latest available. Table A = daily rates for major currencies (USD, EUR, GBP, CHF, JPY, etc.). Table B = twice-weekly rates for less common currencies. Table C = daily buy/sell rates (bid/ask) for major currencies — use for actual FX transactions, not accounting. For invoice-to-PLN conversion in Polish bookkeeping, use Table A. Note: NBP does not publish on weekends/holidays.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Optional YYYY-MM-DD. Defaults to the latest published rate. | |
| table | No | NBP table — A (default) for accounting mid-rate | A |
| currency | Yes | 3-letter ISO 4217 code (e.g., USD, EUR, GBP) |