@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.
Files changed (2) hide show
  1. package/README.md +57 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
  [![license](https://img.shields.io/npm/l/@allratestoday%2Fnbp-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/@allratestoday/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,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
+ [![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.
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-08', // Narodowy Bank Polski's own publication date
137
+ rate_date: '2026-10-12', // Narodowy Bank Polski's own publication date
89
138
  source: 'EUR',
90
139
  target: 'PLN',
91
- rate: 4.3789,
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-08',
165
+ rate_date: '2026-10-12',
117
166
  rates: [
118
- { "base": "EUR", "quote": "PLN", "type": "middle", "value": 4.3789 },
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-08' },
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-08',
220
+ to: '2026-10-12',
172
221
  count: 152,
173
222
  rates: [
174
223
  // one entry per publication date
175
- { date: '2026-10-08', rate: 4.3789, rate_type: 'middle', derived: false, method: 'published' },
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.6",
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",