@allratestoday/nbp-exchange-rate 1.3.6 โ 1.3.9
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 +57 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
[](https://github.com/AllRates-Today/nbp-exchange-rate/blob/main/LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/@allratestoday/nbp-exchange-rate)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](https://allratestoday.com/central-bank-rates-api/nbp/)
|
|
8
|
+
[](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,53 @@ 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
|
+
[](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.
|
|
43
|
+
|
|
44
|
+
<!-- daily-table:start -->
|
|
45
|
+
Published **2026-10-12** by Narodowy Bank Polski โ 32 rates. Updated 2026-10-12.
|
|
46
|
+
|
|
47
|
+
| Base | Quote | Type | Rate |
|
|
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 |
|
|
80
|
+
| ZAR | PLN | middle | 0.2368 |
|
|
81
|
+
|
|
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
|
+
<!-- daily-table:end -->
|
|
84
|
+
|
|
36
85
|
## ๐ Get your API key
|
|
37
86
|
|
|
38
87
|
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 +134,10 @@ const pair = await getRate('EUR', 'PLN', { apiKey: 'art_live_...' });
|
|
|
85
134
|
{
|
|
86
135
|
bank: 'nbp',
|
|
87
136
|
name: 'Narodowy Bank Polski',
|
|
88
|
-
rate_date: '2026-10-
|
|
137
|
+
rate_date: '2026-10-12', // Narodowy Bank Polski's own publication date
|
|
89
138
|
source: 'EUR',
|
|
90
139
|
target: 'PLN',
|
|
91
|
-
rate: 4.
|
|
140
|
+
rate: 4.3889,
|
|
92
141
|
rate_type: 'middle',
|
|
93
142
|
derived: false,
|
|
94
143
|
method: 'published',
|
|
@@ -113,9 +162,9 @@ console.log(table.rate_date, table.rates.length);
|
|
|
113
162
|
{
|
|
114
163
|
bank: 'nbp',
|
|
115
164
|
name: 'Narodowy Bank Polski',
|
|
116
|
-
rate_date: '2026-10-
|
|
165
|
+
rate_date: '2026-10-12',
|
|
117
166
|
rates: [
|
|
118
|
-
{ "base": "EUR", "quote": "PLN", "type": "middle", "value": 4.
|
|
167
|
+
{ "base": "EUR", "quote": "PLN", "type": "middle", "value": 4.3889 },
|
|
119
168
|
// โฆ the rest of the published table (32 currencies vs PLN)
|
|
120
169
|
],
|
|
121
170
|
disclaimer: 'โฆ'
|
|
@@ -155,7 +204,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
155
204
|
import { getHistory } from '@allratestoday/nbp-exchange-rate';
|
|
156
205
|
|
|
157
206
|
const series = await getHistory(
|
|
158
|
-
{ source: 'EUR', target: 'PLN', from: '2026-01-01', to: '2026-10-
|
|
207
|
+
{ source: 'EUR', target: 'PLN', from: '2026-01-01', to: '2026-10-12' },
|
|
159
208
|
{ apiKey: 'art_live_...' }
|
|
160
209
|
);
|
|
161
210
|
```
|
|
@@ -168,11 +217,11 @@ const series = await getHistory(
|
|
|
168
217
|
source: 'EUR',
|
|
169
218
|
target: 'PLN',
|
|
170
219
|
from: '2026-01-01',
|
|
171
|
-
to: '2026-10-
|
|
220
|
+
to: '2026-10-12',
|
|
172
221
|
count: 152,
|
|
173
222
|
rates: [
|
|
174
223
|
// one entry per publication date
|
|
175
|
-
{ date: '2026-10-
|
|
224
|
+
{ date: '2026-10-12', rate: 4.3889, rate_type: 'middle', derived: false, method: 'published' },
|
|
176
225
|
// โฆ
|
|
177
226
|
],
|
|
178
227
|
disclaimer: 'โฆ'
|
|
@@ -222,6 +271,7 @@ curl "https://allratestoday.com/api/v1/central-bank/nbp/latest?format=xml&api_ke
|
|
|
222
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
|
|
223
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
|
|
224
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`
|
|
225
275
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
226
276
|
|
|
227
277
|
## โ๏ธ Published vs derived rates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/nbp-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
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",
|