@allratestoday/nbu-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 +70 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
[](https://github.com/AllRates-Today/nbu-exchange-rate/blob/main/LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/@allratestoday/nbu-exchange-rate)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](https://allratestoday.com/central-bank-rates-api/nbu/)
|
|
8
|
+
[](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,66 @@ 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/nbu/)
|
|
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-08** by National Bank of Ukraine โ 45 rates. Updated 2026-10-12.
|
|
46
|
+
|
|
47
|
+
| Base | Quote | Type | Rate |
|
|
48
|
+
| --- | --- | --- | ---: |
|
|
49
|
+
| AED | UAH | reference | 12.2143 |
|
|
50
|
+
| AUD | UAH | reference | 31.1876 |
|
|
51
|
+
| AZN | UAH | reference | 26.3947 |
|
|
52
|
+
| BDT | UAH | reference | 0.36496 |
|
|
53
|
+
| CAD | UAH | reference | 31.4872 |
|
|
54
|
+
| CHF | UAH | reference | 53.888 |
|
|
55
|
+
| CNY | UAH | reference | 6.6901 |
|
|
56
|
+
| CZK | UAH | reference | 2.0531 |
|
|
57
|
+
| DKK | UAH | reference | 6.7104 |
|
|
58
|
+
| DZD | UAH | reference | 0.33334 |
|
|
59
|
+
| EGP | UAH | reference | 0.8563 |
|
|
60
|
+
| EUR | UAH | reference | 50.1569 |
|
|
61
|
+
| GBP | UAH | reference | 59.2589 |
|
|
62
|
+
| GEL | UAH | reference | 17.2536 |
|
|
63
|
+
| HKD | UAH | reference | 5.7164 |
|
|
64
|
+
| HUF | UAH | reference | 0.136731 |
|
|
65
|
+
| IDR | UAH | reference | 0.0025082 |
|
|
66
|
+
| ILS | UAH | reference | 14.6203 |
|
|
67
|
+
| INR | UAH | reference | 0.46364 |
|
|
68
|
+
| JPY | UAH | reference | 0.28358 |
|
|
69
|
+
| KRW | UAH | reference | 0.033488 |
|
|
70
|
+
| KZT | UAH | reference | 0.100184 |
|
|
71
|
+
| LBP | UAH | reference | 0.000501 |
|
|
72
|
+
| MDL | UAH | reference | 2.5172 |
|
|
73
|
+
| MXN | UAH | reference | 2.4787 |
|
|
74
|
+
| MYR | UAH | reference | 10.9793 |
|
|
75
|
+
| NOK | UAH | reference | 4.6837 |
|
|
76
|
+
| NZD | UAH | reference | 25.1036 |
|
|
77
|
+
| PLN | UAH | reference | 11.4481 |
|
|
78
|
+
| RON | UAH | reference | 9.3678 |
|
|
79
|
+
| RSD | UAH | reference | 0.42713 |
|
|
80
|
+
| SAR | UAH | reference | 11.9499 |
|
|
81
|
+
| SEK | UAH | reference | 4.4694 |
|
|
82
|
+
| SGD | UAH | reference | 35.0409 |
|
|
83
|
+
| THB | UAH | reference | 1.33117 |
|
|
84
|
+
| TND | UAH | reference | 14.8989 |
|
|
85
|
+
| TRY | UAH | reference | 0.9119 |
|
|
86
|
+
| USD | UAH | reference | 44.8639 |
|
|
87
|
+
| VND | UAH | reference | 0.0017268 |
|
|
88
|
+
| XAG | UAH | reference | 2701.42 |
|
|
89
|
+
| XAU | UAH | reference | 184852.82 |
|
|
90
|
+
| XDR | UAH | reference | 60.6468 |
|
|
91
|
+
| XPD | UAH | reference | 51125.69 |
|
|
92
|
+
| XPT | UAH | reference | 73468.81 |
|
|
93
|
+
| ZAR | UAH | reference | 2.6876 |
|
|
94
|
+
|
|
95
|
+
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.
|
|
96
|
+
<!-- daily-table:end -->
|
|
97
|
+
|
|
36
98
|
## ๐ Get your API key
|
|
37
99
|
|
|
38
100
|
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 +147,10 @@ const pair = await getRate('USD', 'UAH', { apiKey: 'art_live_...' });
|
|
|
85
147
|
{
|
|
86
148
|
bank: 'nbu',
|
|
87
149
|
name: 'National Bank of Ukraine',
|
|
88
|
-
rate_date: '2026-10-
|
|
150
|
+
rate_date: '2026-10-08', // National Bank of Ukraine's own publication date
|
|
89
151
|
source: 'USD',
|
|
90
152
|
target: 'UAH',
|
|
91
|
-
rate:
|
|
153
|
+
rate: 44.8639,
|
|
92
154
|
rate_type: 'reference',
|
|
93
155
|
derived: false,
|
|
94
156
|
method: 'published',
|
|
@@ -113,9 +175,9 @@ console.log(table.rate_date, table.rates.length);
|
|
|
113
175
|
{
|
|
114
176
|
bank: 'nbu',
|
|
115
177
|
name: 'National Bank of Ukraine',
|
|
116
|
-
rate_date: '2026-10-
|
|
178
|
+
rate_date: '2026-10-08',
|
|
117
179
|
rates: [
|
|
118
|
-
{ "base": "USD", "quote": "UAH", "type": "reference", "value":
|
|
180
|
+
{ "base": "USD", "quote": "UAH", "type": "reference", "value": 44.8639 },
|
|
119
181
|
// โฆ the rest of the published table (45 currencies vs UAH)
|
|
120
182
|
],
|
|
121
183
|
disclaimer: 'โฆ'
|
|
@@ -155,7 +217,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
155
217
|
import { getHistory } from '@allratestoday/nbu-exchange-rate';
|
|
156
218
|
|
|
157
219
|
const series = await getHistory(
|
|
158
|
-
{ source: 'USD', target: 'UAH', from: '2026-01-01', to: '2026-10-
|
|
220
|
+
{ source: 'USD', target: 'UAH', from: '2026-01-01', to: '2026-10-08' },
|
|
159
221
|
{ apiKey: 'art_live_...' }
|
|
160
222
|
);
|
|
161
223
|
```
|
|
@@ -168,11 +230,11 @@ const series = await getHistory(
|
|
|
168
230
|
source: 'USD',
|
|
169
231
|
target: 'UAH',
|
|
170
232
|
from: '2026-01-01',
|
|
171
|
-
to: '2026-10-
|
|
233
|
+
to: '2026-10-08',
|
|
172
234
|
count: 152,
|
|
173
235
|
rates: [
|
|
174
236
|
// one entry per publication date
|
|
175
|
-
{ date: '2026-10-
|
|
237
|
+
{ date: '2026-10-08', rate: 44.8639, rate_type: 'reference', derived: false, method: 'published' },
|
|
176
238
|
// โฆ
|
|
177
239
|
],
|
|
178
240
|
disclaimer: 'โฆ'
|
|
@@ -223,6 +285,7 @@ curl "https://allratestoday.com/api/v1/central-bank/nbu/latest?format=xml&api_ke
|
|
|
223
285
|
- 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
286
|
- 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
|
|
225
287
|
- 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
|
|
288
|
+
- 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`
|
|
226
289
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
227
290
|
|
|
228
291
|
## โ๏ธ 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.
|
|
3
|
+
"version": "1.3.9",
|
|
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",
|