@allratestoday/nbp-exchange-rate 1.3.9 → 1.3.13

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.
Files changed (2) hide show
  1. package/README.md +41 -41
  2. package/package.json +11 -1
package/README.md CHANGED
@@ -42,41 +42,41 @@ 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-12** by Narodowy Bank Polski — 32 rates. Updated 2026-10-12.
45
+ Published **2026-10-14** by Narodowy Bank Polski — 32 rates. Updated 2026-10-14.
46
46
 
47
47
  | Base | Quote | Type | Rate |
48
48
  | --- | --- | --- | ---: |
49
- | AUD | PLN | middle | 2.7331 |
50
- | BRL | PLN | middle | 0.7854 |
51
- | CAD | PLN | middle | 2.7494 |
52
- | CHF | PLN | middle | 4.7111 |
53
- | CLP | PLN | middle | 0.004014 |
54
- | CNY | PLN | middle | 0.5859 |
55
- | CZK | PLN | middle | 0.1799 |
56
- | DKK | PLN | middle | 0.5872 |
57
- | EUR | PLN | middle | 4.3889 |
58
- | GBP | PLN | middle | 5.1906 |
59
- | HKD | PLN | middle | 0.4996 |
60
- | HUF | PLN | middle | 0.012019 |
61
- | IDR | PLN | middle | 0.00021906 |
62
- | ILS | PLN | middle | 1.273 |
63
- | INR | PLN | middle | 0.040958 |
64
- | ISK | PLN | middle | 0.032083 |
65
- | JPY | PLN | middle | 0.024746 |
66
- | KRW | PLN | middle | 0.002942 |
67
- | MXN | PLN | middle | 0.2131 |
68
- | MYR | PLN | middle | 0.9604 |
69
- | NOK | PLN | middle | 0.4094 |
70
- | NZD | PLN | middle | 2.1959 |
71
- | PHP | PLN | middle | 0.0625 |
72
- | RON | PLN | middle | 0.8222 |
73
- | SEK | PLN | middle | 0.3916 |
74
- | SGD | PLN | middle | 3.0628 |
75
- | THB | PLN | middle | 0.1167 |
76
- | TRY | PLN | middle | 0.0794 |
77
- | UAH | PLN | middle | 0.0873 |
78
- | USD | PLN | middle | 3.9211 |
79
- | XDR | PLN | middle | 5.3001 |
49
+ | AUD | PLN | middle | 2.7362 |
50
+ | BRL | PLN | middle | 0.7767 |
51
+ | CAD | PLN | middle | 2.7466 |
52
+ | CHF | PLN | middle | 4.6835 |
53
+ | CLP | PLN | middle | 0.003974 |
54
+ | CNY | PLN | middle | 0.5833 |
55
+ | CZK | PLN | middle | 0.1793 |
56
+ | DKK | PLN | middle | 0.5847 |
57
+ | EUR | PLN | middle | 4.3706 |
58
+ | GBP | PLN | middle | 5.1775 |
59
+ | HKD | PLN | middle | 0.4975 |
60
+ | HUF | PLN | middle | 0.012016 |
61
+ | IDR | PLN | middle | 0.00021811 |
62
+ | ILS | PLN | middle | 1.2711 |
63
+ | INR | PLN | middle | 0.04107 |
64
+ | ISK | PLN | middle | 0.03209 |
65
+ | JPY | PLN | middle | 0.024638 |
66
+ | KRW | PLN | middle | 0.002923 |
67
+ | MXN | PLN | middle | 0.2125 |
68
+ | MYR | PLN | middle | 0.9563 |
69
+ | NOK | PLN | middle | 0.4112 |
70
+ | NZD | PLN | middle | 2.1939 |
71
+ | PHP | PLN | middle | 0.0621 |
72
+ | RON | PLN | middle | 0.8179 |
73
+ | SEK | PLN | middle | 0.3918 |
74
+ | SGD | PLN | middle | 3.0456 |
75
+ | THB | PLN | middle | 0.1162 |
76
+ | TRY | PLN | middle | 0.079 |
77
+ | UAH | PLN | middle | 0.0868 |
78
+ | USD | PLN | middle | 3.9042 |
79
+ | XDR | PLN | middle | 5.284 |
80
80
  | ZAR | PLN | middle | 0.2368 |
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.
@@ -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-12', // Narodowy Bank Polski's own publication date
137
+ rate_date: '2026-10-14', // Narodowy Bank Polski's own publication date
138
138
  source: 'EUR',
139
139
  target: 'PLN',
140
- rate: 4.3889,
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-12',
165
+ rate_date: '2026-10-14',
166
166
  rates: [
167
- { "base": "EUR", "quote": "PLN", "type": "middle", "value": 4.3889 },
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-12' },
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-12',
220
+ to: '2026-10-14',
221
221
  count: 152,
222
222
  rates: [
223
223
  // one entry per publication date
224
- { date: '2026-10-12', rate: 4.3889, rate_type: 'middle', derived: false, method: 'published' },
224
+ { date: '2026-10-14', rate: 4.3706, rate_type: 'middle', derived: false, method: 'published' },
225
225
  // …
226
226
  ],
227
227
  disclaimer: '…'
@@ -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: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) — one CSV per institution (`rates/nbp.csv`)
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
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/nbp/latest.json`
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.9",
3
+ "version": "1.3.13",
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",