@allratestoday/nbrb-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 +55 -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%2Fnbrb-exchange-rate.svg)](https://github.com/AllRates-Today/nbrb-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/@allratestoday/nbrb-exchange-rate)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)
7
+ [![USD/BYN today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fnbrb%3Fsource%3DUSD%26target%3DBYN&query=%24.rate&label=USD%2FBYN%20published%20by%20National%20Bank%20of%20the%20Republic%20of%20Belarus&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/nbrb/)
8
+ [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fnbrb%3Fsource%3DUSD%26target%3DBYN&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](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,51 @@ 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 National Bank of the Republic of Belarus table](https://allratestoday.com/api/open/central-bank/nbrb/table.svg)](https://allratestoday.com/central-bank-rates-api/nbrb/)
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 National Bank of the Republic of Belarus โ€” 30 rates. Updated 2026-10-12.
46
+
47
+ | Base | Quote | Type | Rate |
48
+ | --- | --- | --- | ---: |
49
+ | AED | BYN | reference | 0.82756 |
50
+ | AMD | BYN | reference | 0.0084209 |
51
+ | AUD | BYN | reference | 2.1215 |
52
+ | BRL | BYN | reference | 0.6053 |
53
+ | CAD | BYN | reference | 2.1359 |
54
+ | CHF | BYN | reference | 3.6588 |
55
+ | CNY | BYN | reference | 0.45531 |
56
+ | CZK | BYN | reference | 0.139968 |
57
+ | DKK | BYN | reference | 0.45609 |
58
+ | EUR | BYN | reference | 3.4097 |
59
+ | GBP | BYN | reference | 4.0241 |
60
+ | INR | BYN | reference | 0.03135 |
61
+ | IRR | BYN | reference | 0.000001755 |
62
+ | ISK | BYN | reference | 0.024926 |
63
+ | JPY | BYN | reference | 0.019198 |
64
+ | KGS | BYN | reference | 0.034754 |
65
+ | KWD | BYN | reference | 9.7786 |
66
+ | KZT | BYN | reference | 0.0067066 |
67
+ | MDL | BYN | reference | 0.1695 |
68
+ | NOK | BYN | reference | 0.31767 |
69
+ | NZD | BYN | reference | 1.7056 |
70
+ | PLN | BYN | reference | 0.77901 |
71
+ | RUB | BYN | reference | 0.035899 |
72
+ | SEK | BYN | reference | 0.30514 |
73
+ | SGD | BYN | reference | 2.3741 |
74
+ | TRY | BYN | reference | 0.06159 |
75
+ | UAH | BYN | reference | 0.067872 |
76
+ | USD | BYN | reference | 3.0392 |
77
+ | VND | BYN | reference | 0.00011743 |
78
+ | XDR | BYN | reference | 4.1085 |
79
+
80
+ 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.
81
+ <!-- daily-table:end -->
82
+
36
83
  ## ๐Ÿ”‘ Get your API key
37
84
 
38
85
  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 +132,10 @@ const pair = await getRate('USD', 'BYN', { apiKey: 'art_live_...' });
85
132
  {
86
133
  bank: 'nbrb',
87
134
  name: 'National Bank of the Republic of Belarus',
88
- rate_date: '2026-10-08', // National Bank of the Republic of Belarus's own publication date
135
+ rate_date: '2026-10-12', // National Bank of the Republic of Belarus's own publication date
89
136
  source: 'USD',
90
137
  target: 'BYN',
91
- rate: 3.0667,
138
+ rate: 3.0392,
92
139
  rate_type: 'reference',
93
140
  derived: false,
94
141
  method: 'published',
@@ -113,9 +160,9 @@ console.log(table.rate_date, table.rates.length);
113
160
  {
114
161
  bank: 'nbrb',
115
162
  name: 'National Bank of the Republic of Belarus',
116
- rate_date: '2026-10-08',
163
+ rate_date: '2026-10-12',
117
164
  rates: [
118
- { "base": "USD", "quote": "BYN", "type": "reference", "value": 3.0667 },
165
+ { "base": "USD", "quote": "BYN", "type": "reference", "value": 3.0392 },
119
166
  // โ€ฆ the rest of the published table (31 currencies vs BYN)
120
167
  ],
121
168
  disclaimer: 'โ€ฆ'
@@ -155,7 +202,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
155
202
  import { getHistory } from '@allratestoday/nbrb-exchange-rate';
156
203
 
157
204
  const series = await getHistory(
158
- { source: 'USD', target: 'BYN', from: '2026-01-01', to: '2026-10-08' },
205
+ { source: 'USD', target: 'BYN', from: '2026-01-01', to: '2026-10-12' },
159
206
  { apiKey: 'art_live_...' }
160
207
  );
161
208
  ```
@@ -168,11 +215,11 @@ const series = await getHistory(
168
215
  source: 'USD',
169
216
  target: 'BYN',
170
217
  from: '2026-01-01',
171
- to: '2026-10-08',
218
+ to: '2026-10-12',
172
219
  count: 152,
173
220
  rates: [
174
221
  // one entry per publication date
175
- { date: '2026-10-08', rate: 3.0667, rate_type: 'reference', derived: false, method: 'published' },
222
+ { date: '2026-10-12', rate: 3.0392, rate_type: 'reference', derived: false, method: 'published' },
176
223
  // โ€ฆ
177
224
  ],
178
225
  disclaimer: 'โ€ฆ'
@@ -222,6 +269,7 @@ curl "https://allratestoday.com/api/v1/central-bank/nbrb/latest?format=xml&api_k
222
269
  - 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
270
  - 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
224
271
  - 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
272
+ - 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
273
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
226
274
 
227
275
  ## โš–๏ธ Published vs derived rates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allratestoday/nbrb-exchange-rate",
3
- "version": "1.3.6",
3
+ "version": "1.3.9",
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",