@allratestoday/bnr-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 +60 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
[](https://github.com/AllRates-Today/bnr-exchange-rate/blob/main/LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/@allratestoday/bnr-exchange-rate)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](https://allratestoday.com/central-bank-rates-api/bnr/)
|
|
8
|
+
[](https://allratestoday.com/central-bank-rates-api/bnr/)
|
|
7
9
|
|
|
8
10
|
**Official National Bank of Romania (Romania) 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 Romania itself prints, every business day.**
|
|
9
11
|
|
|
@@ -33,6 +35,56 @@ 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 Romania 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 Romania โ 37 rates. Updated 2026-10-08.
|
|
44
|
+
|
|
45
|
+
| Base | Quote | Type | Rate |
|
|
46
|
+
| --- | --- | --- | ---: |
|
|
47
|
+
| AED | RON | reference | 1.3017 |
|
|
48
|
+
| AUD | RON | reference | 3.324 |
|
|
49
|
+
| BRL | RON | reference | 0.9522 |
|
|
50
|
+
| CAD | RON | reference | 3.3524 |
|
|
51
|
+
| CHF | RON | reference | 5.7304 |
|
|
52
|
+
| CNY | RON | reference | 0.7134 |
|
|
53
|
+
| CZK | RON | reference | 0.2191 |
|
|
54
|
+
| DKK | RON | reference | 0.7154 |
|
|
55
|
+
| EGP | RON | reference | 0.0912 |
|
|
56
|
+
| EUR | RON | reference | 5.347 |
|
|
57
|
+
| GBP | RON | reference | 6.3058 |
|
|
58
|
+
| HKD | RON | reference | 0.6093 |
|
|
59
|
+
| HUF | RON | reference | 0.014577 |
|
|
60
|
+
| IDR | RON | reference | 0.000267 |
|
|
61
|
+
| ILS | RON | reference | 1.5536 |
|
|
62
|
+
| INR | RON | reference | 0.0494 |
|
|
63
|
+
| ISK | RON | reference | 0.039029 |
|
|
64
|
+
| JPY | RON | reference | 0.030217 |
|
|
65
|
+
| KRW | RON | reference | 0.003556 |
|
|
66
|
+
| MDL | RON | reference | 0.267 |
|
|
67
|
+
| MXN | RON | reference | 0.2652 |
|
|
68
|
+
| MYR | RON | reference | 1.1686 |
|
|
69
|
+
| NOK | RON | reference | 0.4994 |
|
|
70
|
+
| NZD | RON | reference | 2.6724 |
|
|
71
|
+
| PHP | RON | reference | 0.076 |
|
|
72
|
+
| PLN | RON | reference | 1.2211 |
|
|
73
|
+
| RSD | RON | reference | 0.0456 |
|
|
74
|
+
| RUB | RON | reference | 0.0559 |
|
|
75
|
+
| SEK | RON | reference | 0.4775 |
|
|
76
|
+
| SGD | RON | reference | 3.7296 |
|
|
77
|
+
| THB | RON | reference | 0.142 |
|
|
78
|
+
| TRY | RON | reference | 0.0969 |
|
|
79
|
+
| UAH | RON | reference | 0.1066 |
|
|
80
|
+
| USD | RON | reference | 4.7814 |
|
|
81
|
+
| XAU | RON | reference | 19703.72 |
|
|
82
|
+
| XDR | RON | reference | 6.4635 |
|
|
83
|
+
| ZAR | RON | reference | 0.2866 |
|
|
84
|
+
|
|
85
|
+
Source: [Official rates published by BNR, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/bnr/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
|
|
86
|
+
<!-- daily-table:end -->
|
|
87
|
+
|
|
36
88
|
## ๐ Get your API key
|
|
37
89
|
|
|
38
90
|
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 +137,10 @@ const pair = await getRate('EUR', 'RON', { apiKey: 'art_live_...' });
|
|
|
85
137
|
{
|
|
86
138
|
bank: 'bnr',
|
|
87
139
|
name: 'National Bank of Romania',
|
|
88
|
-
rate_date: '2026-10-
|
|
140
|
+
rate_date: '2026-10-08', // National Bank of Romania's own publication date
|
|
89
141
|
source: 'EUR',
|
|
90
142
|
target: 'RON',
|
|
91
|
-
rate: 5.
|
|
143
|
+
rate: 5.347,
|
|
92
144
|
rate_type: 'reference',
|
|
93
145
|
derived: false,
|
|
94
146
|
method: 'published',
|
|
@@ -113,9 +165,9 @@ console.log(table.rate_date, table.rates.length);
|
|
|
113
165
|
{
|
|
114
166
|
bank: 'bnr',
|
|
115
167
|
name: 'National Bank of Romania',
|
|
116
|
-
rate_date: '2026-10-
|
|
168
|
+
rate_date: '2026-10-08',
|
|
117
169
|
rates: [
|
|
118
|
-
{ "base": "EUR", "quote": "RON", "type": "reference", "value": 5.
|
|
170
|
+
{ "base": "EUR", "quote": "RON", "type": "reference", "value": 5.347 },
|
|
119
171
|
// โฆ the rest of the published table (37 currencies vs RON)
|
|
120
172
|
],
|
|
121
173
|
disclaimer: 'โฆ'
|
|
@@ -155,7 +207,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
155
207
|
import { getHistory } from '@allratestoday/bnr-exchange-rate';
|
|
156
208
|
|
|
157
209
|
const series = await getHistory(
|
|
158
|
-
{ source: 'EUR', target: 'RON', from: '2026-01-01', to: '2026-10-
|
|
210
|
+
{ source: 'EUR', target: 'RON', from: '2026-01-01', to: '2026-10-08' },
|
|
159
211
|
{ apiKey: 'art_live_...' }
|
|
160
212
|
);
|
|
161
213
|
```
|
|
@@ -168,11 +220,11 @@ const series = await getHistory(
|
|
|
168
220
|
source: 'EUR',
|
|
169
221
|
target: 'RON',
|
|
170
222
|
from: '2026-01-01',
|
|
171
|
-
to: '2026-10-
|
|
223
|
+
to: '2026-10-08',
|
|
172
224
|
count: 152,
|
|
173
225
|
rates: [
|
|
174
226
|
// one entry per publication date
|
|
175
|
-
{ date: '2026-10-
|
|
227
|
+
{ date: '2026-10-08', rate: 5.347, rate_type: 'reference', derived: false, method: 'published' },
|
|
176
228
|
// โฆ
|
|
177
229
|
],
|
|
178
230
|
disclaimer: 'โฆ'
|
|
@@ -222,6 +274,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bnr/latest?format=xml&api_ke
|
|
|
222
274
|
|
|
223
275
|
- 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
276
|
- 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('bnr')` 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
|
|
277
|
+
- 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 bnr ...` command
|
|
225
278
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
226
279
|
|
|
227
280
|
## โ๏ธ Published vs derived rates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/bnr-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "Official National Bank of Romania (Romania) daily exchange rates โ 37 currencies vs RON, history since 2005. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bnr",
|