@allratestoday/nbu-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 +68 -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%2Fnbu-exchange-rate.svg)](https://github.com/AllRates-Today/nbu-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/@allratestoday/nbu-exchange-rate)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)
7
+ [![USD/UAH today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fnbu%3Fsource%3DUSD%26target%3DUAH&query=%24.rate&label=USD%2FUAH%20published%20by%20National%20Bank%20of%20Ukraine&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/nbu/)
8
+ [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fnbu%3Fsource%3DUSD%26target%3DUAH&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/nbu/)
7
9
 
8
10
  **Official National Bank of Ukraine (Ukraine) 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 National Bank of Ukraine itself prints, every business day.**
9
11
 
@@ -33,6 +35,64 @@ 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 National Bank of Ukraine 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-06** by National Bank of Ukraine โ€” 45 rates. Updated 2026-10-08.
44
+
45
+ | Base | Quote | Type | Rate |
46
+ | --- | --- | --- | ---: |
47
+ | AED | UAH | reference | 12.2671 |
48
+ | AUD | UAH | reference | 31.3561 |
49
+ | AZN | UAH | reference | 26.5038 |
50
+ | BDT | UAH | reference | 0.36655 |
51
+ | CAD | UAH | reference | 31.5975 |
52
+ | CHF | UAH | reference | 54.2071 |
53
+ | CNY | UAH | reference | 6.7188 |
54
+ | CZK | UAH | reference | 2.0646 |
55
+ | DKK | UAH | reference | 6.7541 |
56
+ | DZD | UAH | reference | 0.33539 |
57
+ | EGP | UAH | reference | 0.8593 |
58
+ | EUR | UAH | reference | 50.483 |
59
+ | GBP | UAH | reference | 59.5929 |
60
+ | GEL | UAH | reference | 17.3194 |
61
+ | HKD | UAH | reference | 5.7416 |
62
+ | HUF | UAH | reference | 0.13724 |
63
+ | IDR | UAH | reference | 0.0025147 |
64
+ | ILS | UAH | reference | 14.7137 |
65
+ | INR | UAH | reference | 0.46788 |
66
+ | JPY | UAH | reference | 0.28475 |
67
+ | KRW | UAH | reference | 0.033529 |
68
+ | KZT | UAH | reference | 0.098552 |
69
+ | LBP | UAH | reference | 0.000503 |
70
+ | MDL | UAH | reference | 2.5176 |
71
+ | MXN | UAH | reference | 2.4835 |
72
+ | MYR | UAH | reference | 11.0282 |
73
+ | NOK | UAH | reference | 4.6915 |
74
+ | NZD | UAH | reference | 25.1852 |
75
+ | PLN | UAH | reference | 11.5256 |
76
+ | RON | UAH | reference | 9.4602 |
77
+ | RSD | UAH | reference | 0.42974 |
78
+ | SAR | UAH | reference | 12.0019 |
79
+ | SEK | UAH | reference | 4.4856 |
80
+ | SGD | UAH | reference | 35.189 |
81
+ | THB | UAH | reference | 1.33738 |
82
+ | TND | UAH | reference | 14.9951 |
83
+ | TRY | UAH | reference | 0.9166 |
84
+ | USD | UAH | reference | 45.0564 |
85
+ | VND | UAH | reference | 0.0017331 |
86
+ | XAG | UAH | reference | 2778.08 |
87
+ | XAU | UAH | reference | 187196.86 |
88
+ | XDR | UAH | reference | 60.9542 |
89
+ | XPD | UAH | reference | 53251.21 |
90
+ | XPT | UAH | reference | 77950.55 |
91
+ | ZAR | UAH | reference | 2.7088 |
92
+
93
+ Source: [Official rates published by NBU, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/nbu/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
94
+ <!-- daily-table:end -->
95
+
36
96
  ## ๐Ÿ”‘ Get your API key
37
97
 
38
98
  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 +145,10 @@ const pair = await getRate('USD', 'UAH', { apiKey: 'art_live_...' });
85
145
  {
86
146
  bank: 'nbu',
87
147
  name: 'National Bank of Ukraine',
88
- rate_date: '2026-10-02', // National Bank of Ukraine's own publication date
148
+ rate_date: '2026-10-06', // National Bank of Ukraine's own publication date
89
149
  source: 'USD',
90
150
  target: 'UAH',
91
- rate: 44.8333,
151
+ rate: 45.0564,
92
152
  rate_type: 'reference',
93
153
  derived: false,
94
154
  method: 'published',
@@ -113,9 +173,9 @@ console.log(table.rate_date, table.rates.length);
113
173
  {
114
174
  bank: 'nbu',
115
175
  name: 'National Bank of Ukraine',
116
- rate_date: '2026-10-02',
176
+ rate_date: '2026-10-06',
117
177
  rates: [
118
- { "base": "USD", "quote": "UAH", "type": "reference", "value": 44.8333 },
178
+ { "base": "USD", "quote": "UAH", "type": "reference", "value": 45.0564 },
119
179
  // โ€ฆ the rest of the published table (45 currencies vs UAH)
120
180
  ],
121
181
  disclaimer: 'โ€ฆ'
@@ -155,7 +215,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
155
215
  import { getHistory } from '@allratestoday/nbu-exchange-rate';
156
216
 
157
217
  const series = await getHistory(
158
- { source: 'USD', target: 'UAH', from: '2026-01-01', to: '2026-10-02' },
218
+ { source: 'USD', target: 'UAH', from: '2026-01-01', to: '2026-10-06' },
159
219
  { apiKey: 'art_live_...' }
160
220
  );
161
221
  ```
@@ -168,11 +228,11 @@ const series = await getHistory(
168
228
  source: 'USD',
169
229
  target: 'UAH',
170
230
  from: '2026-01-01',
171
- to: '2026-10-02',
231
+ to: '2026-10-06',
172
232
  count: 152,
173
233
  rates: [
174
234
  // one entry per publication date
175
- { date: '2026-10-02', rate: 44.8333, rate_type: 'reference', derived: false, method: 'published' },
235
+ { date: '2026-10-06', rate: 45.0564, rate_type: 'reference', derived: false, method: 'published' },
176
236
  // โ€ฆ
177
237
  ],
178
238
  disclaimer: 'โ€ฆ'
@@ -222,6 +282,7 @@ curl "https://allratestoday.com/api/v1/central-bank/nbu/latest?format=xml&api_ke
222
282
 
223
283
  - 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
224
284
  - 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('nbu')` 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
285
+ - 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 nbu ...` command
225
286
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
226
287
 
227
288
  ## โš–๏ธ Published vs derived rates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allratestoday/nbu-exchange-rate",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "description": "Official National Bank of Ukraine (Ukraine) daily exchange rates โ€” 45 currencies vs UAH, history since 1996. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "nbu",