@allratestoday/nbp-exchange-rate 1.3.9 → 1.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -43
- package/package.json +11 -1
package/README.md
CHANGED
|
@@ -42,42 +42,42 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
|
|
|
42
42
|
The image is rendered live from the keyless endpoint above, so it follows the central bank's publications on npm and on GitHub alike without a new release. The text copy below is there for search and copy-paste: on GitHub [a daily Action](.github/workflows/daily-table.yml) refreshes it whenever the central bank publishes a new table; on npm it is as of the package's publish date.
|
|
43
43
|
|
|
44
44
|
<!-- daily-table:start -->
|
|
45
|
-
Published **2026-10-
|
|
45
|
+
Published **2026-10-16** by Narodowy Bank Polski — 32 rates. Updated 2026-10-16.
|
|
46
46
|
|
|
47
47
|
| Base | Quote | Type | Rate |
|
|
48
48
|
| --- | --- | --- | ---: |
|
|
49
|
-
| AUD | PLN | middle | 2.
|
|
50
|
-
| BRL | PLN | middle | 0.
|
|
51
|
-
| CAD | PLN | middle | 2.
|
|
52
|
-
| CHF | PLN | middle | 4.
|
|
53
|
-
| CLP | PLN | middle | 0.
|
|
54
|
-
| CNY | PLN | middle | 0.
|
|
55
|
-
| CZK | PLN | middle | 0.
|
|
56
|
-
| DKK | PLN | middle | 0.
|
|
57
|
-
| EUR | PLN | middle | 4.
|
|
58
|
-
| GBP | PLN | middle | 5.
|
|
59
|
-
| HKD | PLN | middle | 0.
|
|
60
|
-
| HUF | PLN | middle | 0.
|
|
61
|
-
| IDR | PLN | middle | 0.
|
|
62
|
-
| ILS | PLN | middle | 1.
|
|
63
|
-
| INR | PLN | middle | 0.
|
|
64
|
-
| ISK | PLN | middle | 0.
|
|
65
|
-
| JPY | PLN | middle | 0.
|
|
66
|
-
| KRW | PLN | middle | 0.
|
|
67
|
-
| MXN | PLN | middle | 0.
|
|
68
|
-
| MYR | PLN | middle | 0.
|
|
69
|
-
| NOK | PLN | middle | 0.
|
|
70
|
-
| NZD | PLN | middle | 2.
|
|
71
|
-
| PHP | PLN | middle | 0.
|
|
72
|
-
| RON | PLN | middle | 0.
|
|
73
|
-
| SEK | PLN | middle | 0.
|
|
74
|
-
| SGD | PLN | middle | 3.
|
|
75
|
-
| THB | PLN | middle | 0.
|
|
76
|
-
| TRY | PLN | middle | 0.
|
|
77
|
-
| UAH | PLN | middle | 0.
|
|
78
|
-
| USD | PLN | middle | 3.
|
|
79
|
-
| XDR | PLN | middle | 5.
|
|
80
|
-
| ZAR | PLN | middle | 0.
|
|
49
|
+
| AUD | PLN | middle | 2.7025 |
|
|
50
|
+
| BRL | PLN | middle | 0.7615 |
|
|
51
|
+
| CAD | PLN | middle | 2.7417 |
|
|
52
|
+
| CHF | PLN | middle | 4.7099 |
|
|
53
|
+
| CLP | PLN | middle | 0.003956 |
|
|
54
|
+
| CNY | PLN | middle | 0.5806 |
|
|
55
|
+
| CZK | PLN | middle | 0.1794 |
|
|
56
|
+
| DKK | PLN | middle | 0.5841 |
|
|
57
|
+
| EUR | PLN | middle | 4.3661 |
|
|
58
|
+
| GBP | PLN | middle | 5.1746 |
|
|
59
|
+
| HKD | PLN | middle | 0.4947 |
|
|
60
|
+
| HUF | PLN | middle | 0.01202 |
|
|
61
|
+
| IDR | PLN | middle | 0.00021565 |
|
|
62
|
+
| ILS | PLN | middle | 1.2557 |
|
|
63
|
+
| INR | PLN | middle | 0.040883 |
|
|
64
|
+
| ISK | PLN | middle | 0.032057 |
|
|
65
|
+
| JPY | PLN | middle | 0.024574 |
|
|
66
|
+
| KRW | PLN | middle | 0.002914 |
|
|
67
|
+
| MXN | PLN | middle | 0.2112 |
|
|
68
|
+
| MYR | PLN | middle | 0.9512 |
|
|
69
|
+
| NOK | PLN | middle | 0.4108 |
|
|
70
|
+
| NZD | PLN | middle | 2.2015 |
|
|
71
|
+
| PHP | PLN | middle | 0.0617 |
|
|
72
|
+
| RON | PLN | middle | 0.8179 |
|
|
73
|
+
| SEK | PLN | middle | 0.3925 |
|
|
74
|
+
| SGD | PLN | middle | 3.0338 |
|
|
75
|
+
| THB | PLN | middle | 0.1162 |
|
|
76
|
+
| TRY | PLN | middle | 0.0783 |
|
|
77
|
+
| UAH | PLN | middle | 0.0865 |
|
|
78
|
+
| USD | PLN | middle | 3.8827 |
|
|
79
|
+
| XDR | PLN | middle | 5.2745 |
|
|
80
|
+
| ZAR | PLN | middle | 0.2363 |
|
|
81
81
|
|
|
82
82
|
Source: [Official rates published by NBP, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/nbp/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
|
|
83
83
|
<!-- daily-table:end -->
|
|
@@ -134,10 +134,10 @@ const pair = await getRate('EUR', 'PLN', { apiKey: 'art_live_...' });
|
|
|
134
134
|
{
|
|
135
135
|
bank: 'nbp',
|
|
136
136
|
name: 'Narodowy Bank Polski',
|
|
137
|
-
rate_date: '2026-10-
|
|
137
|
+
rate_date: '2026-10-14', // Narodowy Bank Polski's own publication date
|
|
138
138
|
source: 'EUR',
|
|
139
139
|
target: 'PLN',
|
|
140
|
-
rate: 4.
|
|
140
|
+
rate: 4.3706,
|
|
141
141
|
rate_type: 'middle',
|
|
142
142
|
derived: false,
|
|
143
143
|
method: 'published',
|
|
@@ -162,9 +162,9 @@ console.log(table.rate_date, table.rates.length);
|
|
|
162
162
|
{
|
|
163
163
|
bank: 'nbp',
|
|
164
164
|
name: 'Narodowy Bank Polski',
|
|
165
|
-
rate_date: '2026-10-
|
|
165
|
+
rate_date: '2026-10-14',
|
|
166
166
|
rates: [
|
|
167
|
-
{ "base": "EUR", "quote": "PLN", "type": "middle", "value": 4.
|
|
167
|
+
{ "base": "EUR", "quote": "PLN", "type": "middle", "value": 4.3706 },
|
|
168
168
|
// … the rest of the published table (32 currencies vs PLN)
|
|
169
169
|
],
|
|
170
170
|
disclaimer: '…'
|
|
@@ -204,7 +204,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
204
204
|
import { getHistory } from '@allratestoday/nbp-exchange-rate';
|
|
205
205
|
|
|
206
206
|
const series = await getHistory(
|
|
207
|
-
{ source: 'EUR', target: 'PLN', from: '2026-01-01', to: '2026-10-
|
|
207
|
+
{ source: 'EUR', target: 'PLN', from: '2026-01-01', to: '2026-10-14' },
|
|
208
208
|
{ apiKey: 'art_live_...' }
|
|
209
209
|
);
|
|
210
210
|
```
|
|
@@ -217,11 +217,11 @@ const series = await getHistory(
|
|
|
217
217
|
source: 'EUR',
|
|
218
218
|
target: 'PLN',
|
|
219
219
|
from: '2026-01-01',
|
|
220
|
-
to: '2026-10-
|
|
220
|
+
to: '2026-10-14',
|
|
221
221
|
count: 152,
|
|
222
222
|
rates: [
|
|
223
223
|
// one entry per publication date
|
|
224
|
-
{ date: '2026-10-
|
|
224
|
+
{ date: '2026-10-14', rate: 4.3706, rate_type: 'middle', derived: false, method: 'published' },
|
|
225
225
|
// …
|
|
226
226
|
],
|
|
227
227
|
disclaimer: '…'
|
|
@@ -271,7 +271,7 @@ curl "https://allratestoday.com/api/v1/central-bank/nbp/latest?format=xml&api_ke
|
|
|
271
271
|
- MCP server: `npx -y @allratestoday/central-bank-mcp` (stdio) or the hosted endpoint `https://allratestoday.com/api/mcp` — tools for official rates, history, cross-bank comparison and publication calendars
|
|
272
272
|
- Already using the general SDK or MCP server? Since 2026-10-01 [`@allratestoday/sdk`](https://www.npmjs.com/package/@allratestoday/sdk) 1.4+ has `officialRates('nbp')` and [`@allratestoday/mcp-server`](https://www.npmjs.com/package/@allratestoday/mcp-server) 0.6+ has a `get_official_rates` tool — both return this source's latest table with no key, so you can add it without a second dependency
|
|
273
273
|
- Claude Code plugin (no key): `/plugin marketplace add AllRates-Today/claude-code-plugin` then `/plugin install allratestoday@allratestoday` — bundles both MCP servers plus an `/official-rate nbp ...` command
|
|
274
|
-
-
|
|
274
|
+
- Evaluating? Agents can self-issue a trial key with no signup: `POST https://allratestoday.com/api/agent/keys` (send `Content-Type: application/json`) returns a 100-call key valid 7 days that covers the free-plan methods (latest table, pairs); dated tables and history need a [paid plan](https://allratestoday.com/pricing/). The MCP servers expose it as `request_trial_key`
|
|
275
275
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
276
276
|
|
|
277
277
|
## ⚖️ Published vs derived rates
|
|
@@ -340,9 +340,9 @@ getRate('EUR', 'PLN', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
340
340
|
|
|
341
341
|
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
|
|
342
342
|
|
|
343
|
-
- Hugging Face: [
|
|
343
|
+
- Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/nbp.csv`)
|
|
344
344
|
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
345
|
-
-
|
|
345
|
+
- Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/nbp/latest.json`
|
|
346
346
|
|
|
347
347
|
## 🔗 Links
|
|
348
348
|
|
package/package.json
CHANGED
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/nbp-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.14",
|
|
4
4
|
"description": "Official Narodowy Bank Polski (Poland) daily exchange rates — 32 currencies vs PLN, history since 2016. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nbp",
|
|
7
|
+
"narodowy-bank-polski",
|
|
7
8
|
"narodowy",
|
|
8
9
|
"bank",
|
|
9
10
|
"polski",
|
|
10
11
|
"exchange-rate",
|
|
11
12
|
"exchange-rates",
|
|
13
|
+
"exchangerate",
|
|
14
|
+
"exchange rate",
|
|
15
|
+
"pln-exchange-rate",
|
|
12
16
|
"currency",
|
|
13
17
|
"forex",
|
|
14
18
|
"fx",
|
|
15
19
|
"pln",
|
|
20
|
+
"currency-api",
|
|
21
|
+
"currency-exchange-rates",
|
|
22
|
+
"forex-api",
|
|
23
|
+
"currency-conversion",
|
|
24
|
+
"currency-exchange",
|
|
25
|
+
"currency-rates",
|
|
16
26
|
"central-bank",
|
|
17
27
|
"official-rates",
|
|
18
28
|
"poland",
|