@allratestoday/nbu-exchange-rate 1.3.7 โ†’ 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 -54
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -37,58 +37,60 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
37
37
 
38
38
  ## ๐Ÿ“ˆ Latest published table
39
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.
40
+ [![Latest National Bank of Ukraine table](https://allratestoday.com/api/open/central-bank/nbu/table.svg)](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.
41
43
 
42
44
  <!-- daily-table:start -->
43
- Published **2026-10-06** by National Bank of Ukraine โ€” 45 rates. Updated 2026-10-08.
45
+ Published **2026-10-08** by National Bank of Ukraine โ€” 45 rates. Updated 2026-10-12.
44
46
 
45
47
  | Base | Quote | Type | Rate |
46
48
  | --- | --- | --- | ---: |
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 |
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 |
92
94
 
93
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.
94
96
  <!-- daily-table:end -->
@@ -145,10 +147,10 @@ const pair = await getRate('USD', 'UAH', { apiKey: 'art_live_...' });
145
147
  {
146
148
  bank: 'nbu',
147
149
  name: 'National Bank of Ukraine',
148
- rate_date: '2026-10-06', // National Bank of Ukraine's own publication date
150
+ rate_date: '2026-10-08', // National Bank of Ukraine's own publication date
149
151
  source: 'USD',
150
152
  target: 'UAH',
151
- rate: 45.0564,
153
+ rate: 44.8639,
152
154
  rate_type: 'reference',
153
155
  derived: false,
154
156
  method: 'published',
@@ -173,9 +175,9 @@ console.log(table.rate_date, table.rates.length);
173
175
  {
174
176
  bank: 'nbu',
175
177
  name: 'National Bank of Ukraine',
176
- rate_date: '2026-10-06',
178
+ rate_date: '2026-10-08',
177
179
  rates: [
178
- { "base": "USD", "quote": "UAH", "type": "reference", "value": 45.0564 },
180
+ { "base": "USD", "quote": "UAH", "type": "reference", "value": 44.8639 },
179
181
  // โ€ฆ the rest of the published table (45 currencies vs UAH)
180
182
  ],
181
183
  disclaimer: 'โ€ฆ'
@@ -215,7 +217,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
215
217
  import { getHistory } from '@allratestoday/nbu-exchange-rate';
216
218
 
217
219
  const series = await getHistory(
218
- { source: 'USD', target: 'UAH', from: '2026-01-01', to: '2026-10-06' },
220
+ { source: 'USD', target: 'UAH', from: '2026-01-01', to: '2026-10-08' },
219
221
  { apiKey: 'art_live_...' }
220
222
  );
221
223
  ```
@@ -228,11 +230,11 @@ const series = await getHistory(
228
230
  source: 'USD',
229
231
  target: 'UAH',
230
232
  from: '2026-01-01',
231
- to: '2026-10-06',
233
+ to: '2026-10-08',
232
234
  count: 152,
233
235
  rates: [
234
236
  // one entry per publication date
235
- { date: '2026-10-06', rate: 45.0564, rate_type: 'reference', derived: false, method: 'published' },
237
+ { date: '2026-10-08', rate: 44.8639, rate_type: 'reference', derived: false, method: 'published' },
236
238
  // โ€ฆ
237
239
  ],
238
240
  disclaimer: 'โ€ฆ'
@@ -283,6 +285,7 @@ curl "https://allratestoday.com/api/v1/central-bank/nbu/latest?format=xml&api_ke
283
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
284
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
285
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`
286
289
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
287
290
 
288
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.7",
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",