nbp-exchange-rate 1.3.5 โ†’ 1.3.7

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 +55 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
  [![license](https://img.shields.io/npm/l/nbp-exchange-rate.svg)](https://github.com/AllRates-Today/nbp-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/nbp-exchange-rate)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)
7
+ [![EUR/PLN today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fnbp%3Fsource%3DEUR%26target%3DPLN&query=%24.rate&label=EUR%2FPLN%20published%20by%20Narodowy%20Bank%20Polski&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/nbp/)
8
+ [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fnbp%3Fsource%3DEUR%26target%3DPLN&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/nbp/)
7
9
 
8
10
  **Official Narodowy Bank Polski (Poland) daily exchange rates for Node.js and TypeScript. The published central bank rates behind tax filings, customs valuations, audits, and compliant invoicing โ€” not market estimates, but the numbers Narodowy Bank Polski itself prints, every business day.**
9
11
 
@@ -33,6 +35,51 @@ console.log(r.rate_date, r.rates.length); // the central bank's latest published
33
35
 
34
36
  The open endpoint serves the *latest* table only and asks for a visible attribution link. The client below uses the keyed API, which adds point-in-time tables, history, and CSV/XML/Excel output.
35
37
 
38
+ ## ๐Ÿ“ˆ Latest published table
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.
41
+
42
+ <!-- daily-table:start -->
43
+ Published **2026-10-08** by Narodowy Bank Polski โ€” 32 rates. Updated 2026-10-08.
44
+
45
+ | Base | Quote | Type | Rate |
46
+ | --- | --- | --- | ---: |
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 |
70
+ | 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 |
79
+
80
+ 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
+ <!-- daily-table:end -->
82
+
36
83
  ## ๐Ÿ”‘ Get your API key
37
84
 
38
85
  Get a free API key at [allratestoday.com/register](https://allratestoday.com/register) โ€” no credit card required. Latest rates are on every plan, including free.
@@ -85,10 +132,10 @@ const pair = await getRate('EUR', 'PLN', { apiKey: 'art_live_...' });
85
132
  {
86
133
  bank: 'nbp',
87
134
  name: 'Narodowy Bank Polski',
88
- rate_date: '2026-10-06', // Narodowy Bank Polski's own publication date
135
+ rate_date: '2026-10-08', // Narodowy Bank Polski's own publication date
89
136
  source: 'EUR',
90
137
  target: 'PLN',
91
- rate: 4.3699,
138
+ rate: 4.3789,
92
139
  rate_type: 'middle',
93
140
  derived: false,
94
141
  method: 'published',
@@ -113,9 +160,9 @@ console.log(table.rate_date, table.rates.length);
113
160
  {
114
161
  bank: 'nbp',
115
162
  name: 'Narodowy Bank Polski',
116
- rate_date: '2026-10-06',
163
+ rate_date: '2026-10-08',
117
164
  rates: [
118
- { "base": "EUR", "quote": "PLN", "type": "middle", "value": 4.3699 },
165
+ { "base": "EUR", "quote": "PLN", "type": "middle", "value": 4.3789 },
119
166
  // โ€ฆ the rest of the published table (32 currencies vs PLN)
120
167
  ],
121
168
  disclaimer: 'โ€ฆ'
@@ -155,7 +202,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
155
202
  import { getHistory } from 'nbp-exchange-rate';
156
203
 
157
204
  const series = await getHistory(
158
- { source: 'EUR', target: 'PLN', from: '2026-01-01', to: '2026-10-06' },
205
+ { source: 'EUR', target: 'PLN', from: '2026-01-01', to: '2026-10-08' },
159
206
  { apiKey: 'art_live_...' }
160
207
  );
161
208
  ```
@@ -168,11 +215,11 @@ const series = await getHistory(
168
215
  source: 'EUR',
169
216
  target: 'PLN',
170
217
  from: '2026-01-01',
171
- to: '2026-10-06',
218
+ to: '2026-10-08',
172
219
  count: 152,
173
220
  rates: [
174
221
  // one entry per publication date
175
- { date: '2026-10-06', rate: 4.3699, rate_type: 'middle', derived: false, method: 'published' },
222
+ { date: '2026-10-08', rate: 4.3789, rate_type: 'middle', derived: false, method: 'published' },
176
223
  // โ€ฆ
177
224
  ],
178
225
  disclaimer: 'โ€ฆ'
@@ -221,6 +268,7 @@ curl "https://allratestoday.com/api/v1/central-bank/nbp/latest?format=xml&api_ke
221
268
 
222
269
  - 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
223
270
  - 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
+ - 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
224
272
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
225
273
 
226
274
  ## โš–๏ธ Published vs derived rates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nbp-exchange-rate",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
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",