nbrb-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.
- package/README.md +53 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
[](https://github.com/AllRates-Today/nbrb-exchange-rate/blob/main/LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/nbrb-exchange-rate)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](https://allratestoday.com/central-bank-rates-api/nbrb/)
|
|
8
|
+
[](https://allratestoday.com/central-bank-rates-api/nbrb/)
|
|
7
9
|
|
|
8
10
|
**Official National Bank of the Republic of Belarus (Belarus) 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 the Republic of Belarus itself prints, every business day.**
|
|
9
11
|
|
|
@@ -33,6 +35,49 @@ 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 the Republic of Belarus 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-08** by National Bank of the Republic of Belarus โ 30 rates. Updated 2026-10-08.
|
|
44
|
+
|
|
45
|
+
| Base | Quote | Type | Rate |
|
|
46
|
+
| --- | --- | --- | ---: |
|
|
47
|
+
| AED | BYN | reference | 0.83504 |
|
|
48
|
+
| AMD | BYN | reference | 0.0084755 |
|
|
49
|
+
| AUD | BYN | reference | 2.1372 |
|
|
50
|
+
| BRL | BYN | reference | 0.61579 |
|
|
51
|
+
| CAD | BYN | reference | 2.1563 |
|
|
52
|
+
| CHF | BYN | reference | 3.6808 |
|
|
53
|
+
| CNY | BYN | reference | 0.45843 |
|
|
54
|
+
| CZK | BYN | reference | 0.140587 |
|
|
55
|
+
| DKK | BYN | reference | 0.45933 |
|
|
56
|
+
| EUR | BYN | reference | 3.4338 |
|
|
57
|
+
| GBP | BYN | reference | 4.0576 |
|
|
58
|
+
| INR | BYN | reference | 0.031613 |
|
|
59
|
+
| IRR | BYN | reference | 0.00000177 |
|
|
60
|
+
| ISK | BYN | reference | 0.025028 |
|
|
61
|
+
| JPY | BYN | reference | 0.019368 |
|
|
62
|
+
| KGS | BYN | reference | 0.035068 |
|
|
63
|
+
| KWD | BYN | reference | 9.8767 |
|
|
64
|
+
| KZT | BYN | reference | 0.0068585 |
|
|
65
|
+
| MDL | BYN | reference | 0.17219 |
|
|
66
|
+
| NOK | BYN | reference | 0.32072 |
|
|
67
|
+
| NZD | BYN | reference | 1.7193 |
|
|
68
|
+
| PLN | BYN | reference | 0.78327 |
|
|
69
|
+
| RUB | BYN | reference | 0.035871 |
|
|
70
|
+
| SEK | BYN | reference | 0.30566 |
|
|
71
|
+
| SGD | BYN | reference | 2.3961 |
|
|
72
|
+
| TRY | BYN | reference | 0.06233 |
|
|
73
|
+
| UAH | BYN | reference | 0.068307 |
|
|
74
|
+
| USD | BYN | reference | 3.0667 |
|
|
75
|
+
| VND | BYN | reference | 0.000118039 |
|
|
76
|
+
| XDR | BYN | reference | 4.1541 |
|
|
77
|
+
|
|
78
|
+
Source: [Official rates published by NBRB, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/nbrb/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
|
|
79
|
+
<!-- daily-table:end -->
|
|
80
|
+
|
|
36
81
|
## ๐ Get your API key
|
|
37
82
|
|
|
38
83
|
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 +130,10 @@ const pair = await getRate('USD', 'BYN', { apiKey: 'art_live_...' });
|
|
|
85
130
|
{
|
|
86
131
|
bank: 'nbrb',
|
|
87
132
|
name: 'National Bank of the Republic of Belarus',
|
|
88
|
-
rate_date: '2026-10-
|
|
133
|
+
rate_date: '2026-10-08', // National Bank of the Republic of Belarus's own publication date
|
|
89
134
|
source: 'USD',
|
|
90
135
|
target: 'BYN',
|
|
91
|
-
rate: 3.
|
|
136
|
+
rate: 3.0667,
|
|
92
137
|
rate_type: 'reference',
|
|
93
138
|
derived: false,
|
|
94
139
|
method: 'published',
|
|
@@ -113,9 +158,9 @@ console.log(table.rate_date, table.rates.length);
|
|
|
113
158
|
{
|
|
114
159
|
bank: 'nbrb',
|
|
115
160
|
name: 'National Bank of the Republic of Belarus',
|
|
116
|
-
rate_date: '2026-10-
|
|
161
|
+
rate_date: '2026-10-08',
|
|
117
162
|
rates: [
|
|
118
|
-
{ "base": "USD", "quote": "BYN", "type": "reference", "value": 3.
|
|
163
|
+
{ "base": "USD", "quote": "BYN", "type": "reference", "value": 3.0667 },
|
|
119
164
|
// โฆ the rest of the published table (31 currencies vs BYN)
|
|
120
165
|
],
|
|
121
166
|
disclaimer: 'โฆ'
|
|
@@ -155,7 +200,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
155
200
|
import { getHistory } from 'nbrb-exchange-rate';
|
|
156
201
|
|
|
157
202
|
const series = await getHistory(
|
|
158
|
-
{ source: 'USD', target: 'BYN', from: '2026-01-01', to: '2026-10-
|
|
203
|
+
{ source: 'USD', target: 'BYN', from: '2026-01-01', to: '2026-10-08' },
|
|
159
204
|
{ apiKey: 'art_live_...' }
|
|
160
205
|
);
|
|
161
206
|
```
|
|
@@ -168,11 +213,11 @@ const series = await getHistory(
|
|
|
168
213
|
source: 'USD',
|
|
169
214
|
target: 'BYN',
|
|
170
215
|
from: '2026-01-01',
|
|
171
|
-
to: '2026-10-
|
|
216
|
+
to: '2026-10-08',
|
|
172
217
|
count: 152,
|
|
173
218
|
rates: [
|
|
174
219
|
// one entry per publication date
|
|
175
|
-
{ date: '2026-10-
|
|
220
|
+
{ date: '2026-10-08', rate: 3.0667, rate_type: 'reference', derived: false, method: 'published' },
|
|
176
221
|
// โฆ
|
|
177
222
|
],
|
|
178
223
|
disclaimer: 'โฆ'
|
|
@@ -221,6 +266,7 @@ curl "https://allratestoday.com/api/v1/central-bank/nbrb/latest?format=xml&api_k
|
|
|
221
266
|
|
|
222
267
|
- 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
268
|
- 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('nbrb')` 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
|
|
269
|
+
- 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 nbrb ...` command
|
|
224
270
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
225
271
|
|
|
226
272
|
## โ๏ธ Published vs derived rates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nbrb-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "Official National Bank of the Republic of Belarus (Belarus) daily exchange rates โ 31 currencies vs BYN, history since 2016. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nbrb",
|