@allratestoday/bnr-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 +62 -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,58 @@ 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/bnr/)
|
|
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 Romania โ 37 rates. Updated 2026-10-12.
|
|
46
|
+
|
|
47
|
+
| Base | Quote | Type | Rate |
|
|
48
|
+
| --- | --- | --- | ---: |
|
|
49
|
+
| AED | RON | reference | 1.2992 |
|
|
50
|
+
| AUD | RON | reference | 3.3262 |
|
|
51
|
+
| BRL | RON | reference | 0.9558 |
|
|
52
|
+
| CAD | RON | reference | 3.3454 |
|
|
53
|
+
| CHF | RON | reference | 5.7273 |
|
|
54
|
+
| CNY | RON | reference | 0.7129 |
|
|
55
|
+
| CZK | RON | reference | 0.2188 |
|
|
56
|
+
| DKK | RON | reference | 0.7141 |
|
|
57
|
+
| EGP | RON | reference | 0.0904 |
|
|
58
|
+
| EUR | RON | reference | 5.3373 |
|
|
59
|
+
| GBP | RON | reference | 6.316 |
|
|
60
|
+
| HKD | RON | reference | 0.608 |
|
|
61
|
+
| HUF | RON | reference | 0.014611 |
|
|
62
|
+
| IDR | RON | reference | 0.000266 |
|
|
63
|
+
| ILS | RON | reference | 1.5514 |
|
|
64
|
+
| INR | RON | reference | 0.0499 |
|
|
65
|
+
| ISK | RON | reference | 0.039072 |
|
|
66
|
+
| JPY | RON | reference | 0.030089 |
|
|
67
|
+
| KRW | RON | reference | 0.003582 |
|
|
68
|
+
| MDL | RON | reference | 0.266 |
|
|
69
|
+
| MXN | RON | reference | 0.2596 |
|
|
70
|
+
| MYR | RON | reference | 1.1682 |
|
|
71
|
+
| NOK | RON | reference | 0.4982 |
|
|
72
|
+
| NZD | RON | reference | 2.6717 |
|
|
73
|
+
| PHP | RON | reference | 0.076 |
|
|
74
|
+
| PLN | RON | reference | 1.2161 |
|
|
75
|
+
| RSD | RON | reference | 0.0455 |
|
|
76
|
+
| RUB | RON | reference | 0.0567 |
|
|
77
|
+
| SEK | RON | reference | 0.4762 |
|
|
78
|
+
| SGD | RON | reference | 3.7263 |
|
|
79
|
+
| THB | RON | reference | 0.142 |
|
|
80
|
+
| TRY | RON | reference | 0.0966 |
|
|
81
|
+
| UAH | RON | reference | 0.106 |
|
|
82
|
+
| USD | RON | reference | 4.7714 |
|
|
83
|
+
| XAU | RON | reference | 19902.471 |
|
|
84
|
+
| XDR | RON | reference | 6.4528 |
|
|
85
|
+
| ZAR | RON | reference | 0.2884 |
|
|
86
|
+
|
|
87
|
+
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.
|
|
88
|
+
<!-- daily-table:end -->
|
|
89
|
+
|
|
36
90
|
## ๐ Get your API key
|
|
37
91
|
|
|
38
92
|
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 +139,10 @@ const pair = await getRate('EUR', 'RON', { apiKey: 'art_live_...' });
|
|
|
85
139
|
{
|
|
86
140
|
bank: 'bnr',
|
|
87
141
|
name: 'National Bank of Romania',
|
|
88
|
-
rate_date: '2026-10-
|
|
142
|
+
rate_date: '2026-10-12', // National Bank of Romania's own publication date
|
|
89
143
|
source: 'EUR',
|
|
90
144
|
target: 'RON',
|
|
91
|
-
rate: 5.
|
|
145
|
+
rate: 5.3373,
|
|
92
146
|
rate_type: 'reference',
|
|
93
147
|
derived: false,
|
|
94
148
|
method: 'published',
|
|
@@ -113,9 +167,9 @@ console.log(table.rate_date, table.rates.length);
|
|
|
113
167
|
{
|
|
114
168
|
bank: 'bnr',
|
|
115
169
|
name: 'National Bank of Romania',
|
|
116
|
-
rate_date: '2026-10-
|
|
170
|
+
rate_date: '2026-10-12',
|
|
117
171
|
rates: [
|
|
118
|
-
{ "base": "EUR", "quote": "RON", "type": "reference", "value": 5.
|
|
172
|
+
{ "base": "EUR", "quote": "RON", "type": "reference", "value": 5.3373 },
|
|
119
173
|
// โฆ the rest of the published table (37 currencies vs RON)
|
|
120
174
|
],
|
|
121
175
|
disclaimer: 'โฆ'
|
|
@@ -155,7 +209,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
155
209
|
import { getHistory } from '@allratestoday/bnr-exchange-rate';
|
|
156
210
|
|
|
157
211
|
const series = await getHistory(
|
|
158
|
-
{ source: 'EUR', target: 'RON', from: '2026-01-01', to: '2026-10-
|
|
212
|
+
{ source: 'EUR', target: 'RON', from: '2026-01-01', to: '2026-10-12' },
|
|
159
213
|
{ apiKey: 'art_live_...' }
|
|
160
214
|
);
|
|
161
215
|
```
|
|
@@ -168,11 +222,11 @@ const series = await getHistory(
|
|
|
168
222
|
source: 'EUR',
|
|
169
223
|
target: 'RON',
|
|
170
224
|
from: '2026-01-01',
|
|
171
|
-
to: '2026-10-
|
|
225
|
+
to: '2026-10-12',
|
|
172
226
|
count: 152,
|
|
173
227
|
rates: [
|
|
174
228
|
// one entry per publication date
|
|
175
|
-
{ date: '2026-10-
|
|
229
|
+
{ date: '2026-10-12', rate: 5.3373, rate_type: 'reference', derived: false, method: 'published' },
|
|
176
230
|
// โฆ
|
|
177
231
|
],
|
|
178
232
|
disclaimer: 'โฆ'
|
|
@@ -223,6 +277,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bnr/latest?format=xml&api_ke
|
|
|
223
277
|
- 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
278
|
- 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
|
|
225
279
|
- 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
|
|
280
|
+
- 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
281
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
227
282
|
|
|
228
283
|
## โ๏ธ 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.9",
|
|
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",
|