@allratestoday/nbp-exchange-rate 1.3.7 โ†’ 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 +45 -42
  2. package/package.json +11 -1
package/README.md CHANGED
@@ -37,45 +37,47 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
37
37
 
38
38
  ## ๐Ÿ“ˆ Latest published table
39
39
 
40
- Today's full Narodowy Bank Polski table, straight from the central bank's latest publication. On GitHub it is refreshed by [a daily Action](.github/workflows/daily-table.yml) that reads the keyless endpoint above and commits only when the central bank publishes a new table; the copy on npm is as of the package's publish date.
40
+ [![Latest Narodowy Bank Polski table](https://allratestoday.com/api/open/central-bank/nbp/table.svg)](https://allratestoday.com/central-bank-rates-api/nbp/)
41
+
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.
41
43
 
42
44
  <!-- daily-table:start -->
43
- Published **2026-10-08** by Narodowy Bank Polski โ€” 32 rates. Updated 2026-10-08.
45
+ Published **2026-10-14** by Narodowy Bank Polski โ€” 32 rates. Updated 2026-10-14.
44
46
 
45
47
  | Base | Quote | Type | Rate |
46
48
  | --- | --- | --- | ---: |
47
- | AUD | PLN | middle | 2.7211 |
48
- | BRL | PLN | middle | 0.7793 |
49
- | CAD | PLN | middle | 2.745 |
50
- | CHF | PLN | middle | 4.6926 |
51
- | CLP | PLN | middle | 0.004001 |
52
- | CNY | PLN | middle | 0.5839 |
53
- | CZK | PLN | middle | 0.1794 |
54
- | DKK | PLN | middle | 0.5859 |
55
- | EUR | PLN | middle | 4.3789 |
56
- | GBP | PLN | middle | 5.1635 |
57
- | HKD | PLN | middle | 0.4987 |
58
- | HUF | PLN | middle | 0.01195 |
59
- | IDR | PLN | middle | 0.00021868 |
60
- | ILS | PLN | middle | 1.2733 |
61
- | INR | PLN | middle | 0.040431 |
62
- | ISK | PLN | middle | 0.031963 |
63
- | JPY | PLN | middle | 0.024729 |
64
- | KRW | PLN | middle | 0.002914 |
65
- | MXN | PLN | middle | 0.2173 |
66
- | MYR | PLN | middle | 0.9568 |
67
- | NOK | PLN | middle | 0.4092 |
68
- | NZD | PLN | middle | 2.1884 |
69
- | PHP | PLN | middle | 0.0622 |
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 |
70
72
  | RON | PLN | middle | 0.8179 |
71
- | SEK | PLN | middle | 0.3912 |
72
- | SGD | PLN | middle | 3.0534 |
73
- | THB | PLN | middle | 0.1163 |
74
- | TRY | PLN | middle | 0.0793 |
75
- | UAH | PLN | middle | 0.0873 |
76
- | USD | PLN | middle | 3.9132 |
77
- | XDR | PLN | middle | 5.2976 |
78
- | ZAR | PLN | middle | 0.235 |
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
+ | ZAR | PLN | middle | 0.2368 |
79
81
 
80
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.
81
83
  <!-- daily-table:end -->
@@ -132,10 +134,10 @@ const pair = await getRate('EUR', 'PLN', { apiKey: 'art_live_...' });
132
134
  {
133
135
  bank: 'nbp',
134
136
  name: 'Narodowy Bank Polski',
135
- rate_date: '2026-10-08', // Narodowy Bank Polski's own publication date
137
+ rate_date: '2026-10-14', // Narodowy Bank Polski's own publication date
136
138
  source: 'EUR',
137
139
  target: 'PLN',
138
- rate: 4.3789,
140
+ rate: 4.3706,
139
141
  rate_type: 'middle',
140
142
  derived: false,
141
143
  method: 'published',
@@ -160,9 +162,9 @@ console.log(table.rate_date, table.rates.length);
160
162
  {
161
163
  bank: 'nbp',
162
164
  name: 'Narodowy Bank Polski',
163
- rate_date: '2026-10-08',
165
+ rate_date: '2026-10-14',
164
166
  rates: [
165
- { "base": "EUR", "quote": "PLN", "type": "middle", "value": 4.3789 },
167
+ { "base": "EUR", "quote": "PLN", "type": "middle", "value": 4.3706 },
166
168
  // โ€ฆ the rest of the published table (32 currencies vs PLN)
167
169
  ],
168
170
  disclaimer: 'โ€ฆ'
@@ -202,7 +204,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
202
204
  import { getHistory } from '@allratestoday/nbp-exchange-rate';
203
205
 
204
206
  const series = await getHistory(
205
- { source: 'EUR', target: 'PLN', from: '2026-01-01', to: '2026-10-08' },
207
+ { source: 'EUR', target: 'PLN', from: '2026-01-01', to: '2026-10-14' },
206
208
  { apiKey: 'art_live_...' }
207
209
  );
208
210
  ```
@@ -215,11 +217,11 @@ const series = await getHistory(
215
217
  source: 'EUR',
216
218
  target: 'PLN',
217
219
  from: '2026-01-01',
218
- to: '2026-10-08',
220
+ to: '2026-10-14',
219
221
  count: 152,
220
222
  rates: [
221
223
  // one entry per publication date
222
- { date: '2026-10-08', rate: 4.3789, rate_type: 'middle', derived: false, method: 'published' },
224
+ { date: '2026-10-14', rate: 4.3706, rate_type: 'middle', derived: false, method: 'published' },
223
225
  // โ€ฆ
224
226
  ],
225
227
  disclaimer: 'โ€ฆ'
@@ -269,6 +271,7 @@ curl "https://allratestoday.com/api/v1/central-bank/nbp/latest?format=xml&api_ke
269
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
270
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
271
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
+ - Need dated tables or history for an evaluation? 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; the MCP servers expose it as `request_trial_key`
272
275
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
273
276
 
274
277
  ## โš–๏ธ Published vs derived rates
@@ -337,9 +340,9 @@ getRate('EUR', 'PLN', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
337
340
 
338
341
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
339
342
 
340
- - 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`)
341
344
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
342
- - 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`
343
346
 
344
347
  ## ๐Ÿ”— Links
345
348
 
package/package.json CHANGED
@@ -1,18 +1,28 @@
1
1
  {
2
2
  "name": "@allratestoday/nbp-exchange-rate",
3
- "version": "1.3.7",
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",