@allratestoday/bnr-exchange-rate 1.3.7 โ†’ 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 +47 -44
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -37,50 +37,52 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
37
37
 
38
38
  ## ๐Ÿ“ˆ Latest published table
39
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.
40
+ [![Latest National Bank of Romania table](https://allratestoday.com/api/open/central-bank/bnr/table.svg)](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.
41
43
 
42
44
  <!-- daily-table:start -->
43
- Published **2026-10-08** by National Bank of Romania โ€” 37 rates. Updated 2026-10-08.
45
+ Published **2026-10-12** by National Bank of Romania โ€” 37 rates. Updated 2026-10-12.
44
46
 
45
47
  | Base | Quote | Type | Rate |
46
48
  | --- | --- | --- | ---: |
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 |
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 |
71
73
  | 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 |
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 |
77
79
  | 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 |
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 |
84
86
 
85
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.
86
88
  <!-- daily-table:end -->
@@ -137,10 +139,10 @@ const pair = await getRate('EUR', 'RON', { apiKey: 'art_live_...' });
137
139
  {
138
140
  bank: 'bnr',
139
141
  name: 'National Bank of Romania',
140
- rate_date: '2026-10-08', // National Bank of Romania's own publication date
142
+ rate_date: '2026-10-12', // National Bank of Romania's own publication date
141
143
  source: 'EUR',
142
144
  target: 'RON',
143
- rate: 5.347,
145
+ rate: 5.3373,
144
146
  rate_type: 'reference',
145
147
  derived: false,
146
148
  method: 'published',
@@ -165,9 +167,9 @@ console.log(table.rate_date, table.rates.length);
165
167
  {
166
168
  bank: 'bnr',
167
169
  name: 'National Bank of Romania',
168
- rate_date: '2026-10-08',
170
+ rate_date: '2026-10-12',
169
171
  rates: [
170
- { "base": "EUR", "quote": "RON", "type": "reference", "value": 5.347 },
172
+ { "base": "EUR", "quote": "RON", "type": "reference", "value": 5.3373 },
171
173
  // โ€ฆ the rest of the published table (37 currencies vs RON)
172
174
  ],
173
175
  disclaimer: 'โ€ฆ'
@@ -207,7 +209,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
207
209
  import { getHistory } from '@allratestoday/bnr-exchange-rate';
208
210
 
209
211
  const series = await getHistory(
210
- { source: 'EUR', target: 'RON', from: '2026-01-01', to: '2026-10-08' },
212
+ { source: 'EUR', target: 'RON', from: '2026-01-01', to: '2026-10-12' },
211
213
  { apiKey: 'art_live_...' }
212
214
  );
213
215
  ```
@@ -220,11 +222,11 @@ const series = await getHistory(
220
222
  source: 'EUR',
221
223
  target: 'RON',
222
224
  from: '2026-01-01',
223
- to: '2026-10-08',
225
+ to: '2026-10-12',
224
226
  count: 152,
225
227
  rates: [
226
228
  // one entry per publication date
227
- { date: '2026-10-08', rate: 5.347, rate_type: 'reference', derived: false, method: 'published' },
229
+ { date: '2026-10-12', rate: 5.3373, rate_type: 'reference', derived: false, method: 'published' },
228
230
  // โ€ฆ
229
231
  ],
230
232
  disclaimer: 'โ€ฆ'
@@ -275,6 +277,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bnr/latest?format=xml&api_ke
275
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
276
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
277
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`
278
281
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
279
282
 
280
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.7",
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",