@allratestoday/bnr-exchange-rate 1.3.9 → 1.3.14
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 +45 -45
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -42,47 +42,47 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
|
|
|
42
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
43
|
|
|
44
44
|
<!-- daily-table:start -->
|
|
45
|
-
Published **2026-10-
|
|
45
|
+
Published **2026-10-16** by National Bank of Romania — 37 rates. Updated 2026-10-16.
|
|
46
46
|
|
|
47
47
|
| Base | Quote | Type | Rate |
|
|
48
48
|
| --- | --- | --- | ---: |
|
|
49
|
-
| AED | RON | reference | 1.
|
|
50
|
-
| AUD | RON | reference | 3.
|
|
51
|
-
| BRL | RON | reference | 0.
|
|
52
|
-
| CAD | RON | reference | 3.
|
|
53
|
-
| CHF | RON | reference | 5.
|
|
54
|
-
| CNY | RON | reference | 0.
|
|
55
|
-
| CZK | RON | reference | 0.
|
|
56
|
-
| DKK | RON | reference | 0.
|
|
57
|
-
| EGP | RON | reference | 0.
|
|
58
|
-
| EUR | RON | reference | 5.
|
|
59
|
-
| GBP | RON | reference | 6.
|
|
60
|
-
| HKD | RON | reference | 0.
|
|
61
|
-
| HUF | RON | reference | 0.
|
|
62
|
-
| IDR | RON | reference | 0.
|
|
63
|
-
| ILS | RON | reference | 1.
|
|
64
|
-
| INR | RON | reference | 0.
|
|
65
|
-
| ISK | RON | reference | 0.
|
|
66
|
-
| JPY | RON | reference | 0.
|
|
67
|
-
| KRW | RON | reference | 0.
|
|
68
|
-
| MDL | RON | reference | 0.
|
|
69
|
-
| MXN | RON | reference | 0.
|
|
70
|
-
| MYR | RON | reference | 1.
|
|
71
|
-
| NOK | RON | reference | 0.
|
|
72
|
-
| NZD | RON | reference | 2.
|
|
73
|
-
| PHP | RON | reference | 0.
|
|
74
|
-
| PLN | RON | reference | 1.
|
|
49
|
+
| AED | RON | reference | 1.2915 |
|
|
50
|
+
| AUD | RON | reference | 3.3007 |
|
|
51
|
+
| BRL | RON | reference | 0.9303 |
|
|
52
|
+
| CAD | RON | reference | 3.3497 |
|
|
53
|
+
| CHF | RON | reference | 5.7558 |
|
|
54
|
+
| CNY | RON | reference | 0.7094 |
|
|
55
|
+
| CZK | RON | reference | 0.2194 |
|
|
56
|
+
| DKK | RON | reference | 0.714 |
|
|
57
|
+
| EGP | RON | reference | 0.0887 |
|
|
58
|
+
| EUR | RON | reference | 5.3368 |
|
|
59
|
+
| GBP | RON | reference | 6.3228 |
|
|
60
|
+
| HKD | RON | reference | 0.6043 |
|
|
61
|
+
| HUF | RON | reference | 0.014695 |
|
|
62
|
+
| IDR | RON | reference | 0.000263 |
|
|
63
|
+
| ILS | RON | reference | 1.5345 |
|
|
64
|
+
| INR | RON | reference | 0.05 |
|
|
65
|
+
| ISK | RON | reference | 0.039184 |
|
|
66
|
+
| JPY | RON | reference | 0.030022 |
|
|
67
|
+
| KRW | RON | reference | 0.003564 |
|
|
68
|
+
| MDL | RON | reference | 0.2655 |
|
|
69
|
+
| MXN | RON | reference | 0.258 |
|
|
70
|
+
| MYR | RON | reference | 1.1622 |
|
|
71
|
+
| NOK | RON | reference | 0.5018 |
|
|
72
|
+
| NZD | RON | reference | 2.6877 |
|
|
73
|
+
| PHP | RON | reference | 0.0753 |
|
|
74
|
+
| PLN | RON | reference | 1.2219 |
|
|
75
75
|
| RSD | RON | reference | 0.0455 |
|
|
76
76
|
| RUB | RON | reference | 0.0567 |
|
|
77
|
-
| SEK | RON | reference | 0.
|
|
78
|
-
| SGD | RON | reference | 3.
|
|
77
|
+
| SEK | RON | reference | 0.4792 |
|
|
78
|
+
| SGD | RON | reference | 3.7073 |
|
|
79
79
|
| THB | RON | reference | 0.142 |
|
|
80
|
-
| TRY | RON | reference | 0.
|
|
81
|
-
| UAH | RON | reference | 0.
|
|
82
|
-
| USD | RON | reference | 4.
|
|
83
|
-
| XAU | RON | reference |
|
|
84
|
-
| XDR | RON | reference | 6.
|
|
85
|
-
| ZAR | RON | reference | 0.
|
|
80
|
+
| TRY | RON | reference | 0.0957 |
|
|
81
|
+
| UAH | RON | reference | 0.1057 |
|
|
82
|
+
| USD | RON | reference | 4.743 |
|
|
83
|
+
| XAU | RON | reference | 19837.126 |
|
|
84
|
+
| XDR | RON | reference | 6.4319 |
|
|
85
|
+
| ZAR | RON | reference | 0.2886 |
|
|
86
86
|
|
|
87
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
88
|
<!-- daily-table:end -->
|
|
@@ -139,10 +139,10 @@ const pair = await getRate('EUR', 'RON', { apiKey: 'art_live_...' });
|
|
|
139
139
|
{
|
|
140
140
|
bank: 'bnr',
|
|
141
141
|
name: 'National Bank of Romania',
|
|
142
|
-
rate_date: '2026-10-
|
|
142
|
+
rate_date: '2026-10-14', // National Bank of Romania's own publication date
|
|
143
143
|
source: 'EUR',
|
|
144
144
|
target: 'RON',
|
|
145
|
-
rate: 5.
|
|
145
|
+
rate: 5.3393,
|
|
146
146
|
rate_type: 'reference',
|
|
147
147
|
derived: false,
|
|
148
148
|
method: 'published',
|
|
@@ -167,9 +167,9 @@ console.log(table.rate_date, table.rates.length);
|
|
|
167
167
|
{
|
|
168
168
|
bank: 'bnr',
|
|
169
169
|
name: 'National Bank of Romania',
|
|
170
|
-
rate_date: '2026-10-
|
|
170
|
+
rate_date: '2026-10-14',
|
|
171
171
|
rates: [
|
|
172
|
-
{ "base": "EUR", "quote": "RON", "type": "reference", "value": 5.
|
|
172
|
+
{ "base": "EUR", "quote": "RON", "type": "reference", "value": 5.3393 },
|
|
173
173
|
// … the rest of the published table (37 currencies vs RON)
|
|
174
174
|
],
|
|
175
175
|
disclaimer: '…'
|
|
@@ -209,7 +209,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
209
209
|
import { getHistory } from '@allratestoday/bnr-exchange-rate';
|
|
210
210
|
|
|
211
211
|
const series = await getHistory(
|
|
212
|
-
{ source: 'EUR', target: 'RON', from: '2026-01-01', to: '2026-10-
|
|
212
|
+
{ source: 'EUR', target: 'RON', from: '2026-01-01', to: '2026-10-14' },
|
|
213
213
|
{ apiKey: 'art_live_...' }
|
|
214
214
|
);
|
|
215
215
|
```
|
|
@@ -222,11 +222,11 @@ const series = await getHistory(
|
|
|
222
222
|
source: 'EUR',
|
|
223
223
|
target: 'RON',
|
|
224
224
|
from: '2026-01-01',
|
|
225
|
-
to: '2026-10-
|
|
225
|
+
to: '2026-10-14',
|
|
226
226
|
count: 152,
|
|
227
227
|
rates: [
|
|
228
228
|
// one entry per publication date
|
|
229
|
-
{ date: '2026-10-
|
|
229
|
+
{ date: '2026-10-14', rate: 5.3393, rate_type: 'reference', derived: false, method: 'published' },
|
|
230
230
|
// …
|
|
231
231
|
],
|
|
232
232
|
disclaimer: '…'
|
|
@@ -277,7 +277,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bnr/latest?format=xml&api_ke
|
|
|
277
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
|
|
278
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
|
|
279
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
|
-
-
|
|
280
|
+
- Evaluating? 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 that covers the free-plan methods (latest table, pairs); dated tables and history need a [paid plan](https://allratestoday.com/pricing/). The MCP servers expose it as `request_trial_key`
|
|
281
281
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
282
282
|
|
|
283
283
|
## ⚖️ Published vs derived rates
|
|
@@ -346,9 +346,9 @@ getRate('EUR', 'RON', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
346
346
|
|
|
347
347
|
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
|
|
348
348
|
|
|
349
|
-
- Hugging Face: [
|
|
349
|
+
- Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/bnr.csv`)
|
|
350
350
|
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
351
|
-
-
|
|
351
|
+
- Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/bnr/latest.json`
|
|
352
352
|
|
|
353
353
|
## 🔗 Links
|
|
354
354
|
|
package/package.json
CHANGED
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/bnr-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.14",
|
|
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",
|
|
7
|
+
"national-bank-of-romania",
|
|
7
8
|
"national",
|
|
8
9
|
"bank",
|
|
9
|
-
"of",
|
|
10
10
|
"romania",
|
|
11
11
|
"exchange-rate",
|
|
12
12
|
"exchange-rates",
|
|
13
|
+
"exchangerate",
|
|
14
|
+
"exchange rate",
|
|
15
|
+
"ron-exchange-rate",
|
|
13
16
|
"currency",
|
|
14
17
|
"forex",
|
|
15
18
|
"fx",
|
|
16
19
|
"ron",
|
|
20
|
+
"currency-api",
|
|
21
|
+
"currency-exchange-rates",
|
|
22
|
+
"forex-api",
|
|
23
|
+
"currency-conversion",
|
|
24
|
+
"currency-exchange",
|
|
25
|
+
"currency-rates",
|
|
17
26
|
"central-bank",
|
|
18
27
|
"official-rates",
|
|
19
|
-
"romania",
|
|
20
28
|
"api",
|
|
21
29
|
"typescript"
|
|
22
30
|
],
|