nbp
/nbp
Fetch official exchange rates, calculate tax conversions for foreign currency invoices, and check gold prices from Narodowy Bank Polski (NBP). Get current or historical average rates (Table A & B) for EUR, USD, GBP, CHF, etc. Calculate foreign currency invoices in PLN according to Polish tax law (Art. 31a ustawy o VAT / Art. 11a ustawy o PIT) by automatically looking up the official NBP rate from the last business day preceding the invoice date. Convert between any currency pairs. Get official gold prices per gram and troy ounce. Use whenever the user asks about "kurs euro", "kurs dolara", "ta
- Author
- b44x ↗
- Repository
- ai-polish-skills ↗
- Licence
- MIT
- Last repository change
- 08.11.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 4
No signals detected. Repository changed on 08.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/nbp.py
What it does and when to use it
Fetch official exchange rates, calculate tax conversions for foreign currency invoices, and check gold prices from Narodowy Bank Polski (NBP). Get current or historical average rates (Table A & B) for EUR, USD, GBP, CHF, etc. Calculate foreign currency invoices in PLN according to Polish tax law (Art. 31a ustawy o VAT / Art. 11a ustawy o PIT) by automatically looking up the official NBP rate from the last business day preceding the invoice date. Convert between any currency pairs. Get official gold prices per gram and troy ounce. Use whenever the user asks about "kurs euro", "kurs dolara", "ta
Triggers from the description
Original author description
Fetch official exchange rates, calculate tax conversions for foreign currency invoices, and check gold prices from Narodowy Bank Polski (NBP). Get current or historical average rates (Table A & B) for EUR, USD, GBP, CHF, etc. Calculate foreign currency invoices in PLN according to Polish tax law (Art. 31a ustawy o VAT / Art. 11a ustawy o PIT) by automatically looking up the official NBP rate from the last business day preceding the invoice date. Convert between any currency pairs. Get official gold prices per gram and troy ounce. Use whenever the user asks about "kurs euro", "kurs dolara", "ta
How it works
- Running the script
- Workflow
- Commands
- Exit codes
- Rules
SKILL.md preview
---
name: nbp
display_name: Narodowy Bank Polski (NBP)
version: 1.0.0
description: >-
Fetch official exchange rates, calculate tax conversions for foreign currency invoices,
and check gold prices from Narodowy Bank Polski (NBP). Get current or historical average
rates (Table A & B) for EUR, USD, GBP, CHF, etc. Calculate foreign currency invoices in
PLN according to Polish tax law (Art. 31a ustawy o VAT / Art. 11a ustawy o PIT) by
automatically looking up the official NBP rate from the last business day preceding the
invoice date. Convert between any currency pairs. Get official gold prices per gram and
troy ounce. Use whenever the user asks about "kurs euro", "kurs dolara", "tabela NBP",
"kurs do faktury", "przelicz walutę NBP", "cena złota NBP", or foreign invoice conversion.
category: finance
language: pl
country: PL
license: MIT
author: Michell Hoduń (https://github.com/b44x)
repository: https://github.com/b44x/ai-polish-skills
network: true
authentication: none
source: Narodowy Bank Polski
source_type: official_api
official: true
homepage: https://nbp.pl
documentation: https://api.nbp.pl/
rate_limit: fair use
last_verified: 2026-09-28
tags:
- nbp
- waluty
- kursy-walut
- euro
- dolar
- podatki
- vat
- zloto
- faktury
compatibility: Python 3.8+ (standard library only); network access to api.nbp.pl.
---
# Narodowy Bank Polski (NBP)
Fetches official currency exchange rates and gold prices from Narodowy Bank Polski using
`scripts/nbp.py`. Always outputs structured JSON.
## Running the script
Run from this skill's directory (or use relative path from repo root):
| OS | Command |
|---|---|
| Linux / macOS | `python3 scripts/nbp.py <command> …` |
| Windows | `py scripts/nbp.py <command> …` (or `python`) |
Zero external dependencies required (standard library only).
## Workflow
1. **Foreign Currency Invoices (Tax conversion):**
- Whenever the user asks to convert an invoice or calculate VAT/income tax for a foreign currency:
`python3 scripts/nbp.py invoice <amount> <currency> <invoice_date>`
*Example:* `python3 scripts/nbp.py invoice 1500 EUR 2026-09-28`
- The script automatically locates the official NBP table published on the **last business day preceding the invoice date** (skipping weekends and holidays) in accordance with Art. 31a ust. 1 Ustawy o VAT.
- Always report the `tableNumber`, `taxEffectiveDate`, `exchangeRate`, and `amountPln`.
2. **Single Currency Rate:**
- User asks for the current or historical rate of a currency (e.g. "ile kosztuje euro dzisiaj?"):
`python3 scripts/nbp.py rate EUR`
`python3 scripts/nbp.py rate USD --date 2026-09-15`
3. **General Currency Conversion:**
- Convert arbitrary amounts between currencies:
`python3 scripts/nbp.py convert 250 USD EUR`
4. **Gold Price:**
- User asks for gold prices:
`python3 scripts/nbp.py gold`
- Returns official NBP price per 1 gram and calculated per troy ounce (oz) in PLN.
5. **Full Tables:**
- List all rates from Table A (major) or B (exotic):
`python3 scripts/nbp.py table A`
## Commands
| Command | Description | Returns |
|---|---|---|
| `invoice <amount> <currency> <date>` | Convert invoice to PLN according to Polish tax law (preceding business day) | `invoiceDate`, `taxEffectiveDate`, `tableNumber`, `exchangeRate`, `amountPln`, `legalBasis` |
| `rate <currency> [--date D]` | Get mid exchange rate for currency (Table A or B) | `currency`, `mid`, `tableNumber`, `effectiveDate` |
| `convert <amount> <from> <to> [--date D]` | Convert between any two currencies | `amount`, `convertedAmount`, `effectiveRate`, `date` |
| `table [A\|B\|C] [--date D]` | Fetch complete exchange rates table | `tableNumber`, `effectiveDate`, `rates` list |
| `gold [--date D]` | Get official gold price in PLN (per gram and troy ounce) | `pricePerGramPln`, `pricePerTroyOuncePln`, `priceFormatted` |
Field reference and statutory tax rules: [references/output.md](references/output.md).
## Exit codes
JSON goes to stdout; errors go to stderr as `{"error": "...", "type": "..."}`.
| Code | Meaning | What to do |
|---|---|---|
| `0` | Success | Use the JSON output |
| `2` | Not found | Invalid currency code or date out of range / holiday |
| `64` | Bad usage / validation | Invalid date format (expected YYYY-MM-DD) or missing arguments |
| `69` | Network / NBP server error | Retry once; check internet connection |
## Rules
- For tax and invoicing questions, always use `invoice` rather than `rate` — Polish tax law strictly forbids using the rate from the same day as the invoice.
- Cite the official `tableNumber` (e.g. `187/A/NBP/2026`) in your answer to ensure full legal audit compliance.
Files in this package (3)
- SKILL.md 5 KB
- references/output.md 4 KB
- scripts/nbp.py 11 KB
Versions
The database has no other skills named nbp.
Database snapshot: 13.11.2026 · package version c7a14878e06a (SHA-256 digest of the entire package)
Downloads in the last 30 days: 5 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100currency
Currency exchange rates and conversion via the Frankfurter API (no key). Use for FX rates, "convert X to Y", or historical/time-series rates. - 90tgju
Unofficial read-only TGJU: live Iranian gold, coin, currency and crypto prices with daily history. Use when the user asks about TGJU Prices (tgju.org) or wants live gold, coin, currency or crypto prices in Iran. - 100pl-income-tax
Polish personal income tax (PIT) for individuals and the self-employed for tax year 2026. Covers residence, the three tax forms for a sole trader (the 12% and 32% scale with the PLN 30,000 tax-free amount and PLN 120,000 threshold; the 19% flat tax with the PLN 14,100 health… - 96appstore-payouts-to-excel
Turn App Store Connect financial or sales reports into an Excel workbook with proceeds by currency, country and app, converted at NBP or given rates. Use for App Store income, payouts or bookkeeping. - 90milligold
Unofficial read-only Milli.gold: live 18k gold price, history, fees, trade quotes, news and help. Use when the user asks about Milli.gold Prices (milli.gold) or wants live gold, coin, currency or crypto prices in Iran. - 100poland-vat-return
Polish VAT (podatek od towarów i usług) for tax year 2026: who must register, the 23%, 8%, 5% and 0% rates, the small-business exemption of PLN 240,000 (raised from PLN 200,000 on 1 January 2026) and the EU SME scheme, the JPK_V7M and JPK_V7K files due on the 25th, refunds in 40…