@allratestoday/cbr-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 +65 -62
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -37,66 +37,68 @@ 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 Bank of Russia 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 Bank of Russia table](https://allratestoday.com/api/open/central-bank/cbr/table.svg)](https://allratestoday.com/central-bank-rates-api/cbr/)
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 Bank of Russia โ€” 53 rates. Updated 2026-10-08.
45
+ Published **2026-10-10** by Bank of Russia โ€” 53 rates. Updated 2026-10-12.
44
46
 
45
47
  | Base | Quote | Type | Rate |
46
48
  | --- | --- | --- | ---: |
47
- | AED | RUB | reference | 23.276 |
48
- | AMD | RUB | reference | 0.235927 |
49
- | AUD | RUB | reference | 59.5803 |
50
- | AZN | RUB | reference | 50.283 |
51
- | BDT | RUB | reference | 0.694571 |
52
- | BHD | RUB | reference | 227.2942 |
53
- | BOB | RUB | reference | 7.14128 |
54
- | BRL | RUB | reference | 17.2011 |
55
- | BYN | RUB | reference | 27.874 |
56
- | CAD | RUB | reference | 60.0879 |
57
- | CHF | RUB | reference | 102.5937 |
58
- | CNY | RUB | reference | 12.7516 |
59
- | CUP | RUB | reference | 3.57132 |
60
- | CZK | RUB | reference | 3.91021 |
61
- | DKK | RUB | reference | 12.8872 |
62
- | DZD | RUB | reference | 0.635886 |
63
- | EGP | RUB | reference | 1.63162 |
64
- | ETB | RUB | reference | 0.530977 |
65
- | EUR | RUB | reference | 96.3287 |
66
- | GBP | RUB | reference | 113.5104 |
67
- | GEL | RUB | reference | 32.8458 |
68
- | HKD | RUB | reference | 10.89 |
69
- | HUF | RUB | reference | 0.260995 |
70
- | IDR | RUB | reference | 0.00477281 |
71
- | INR | RUB | reference | 0.884687 |
72
- | JPY | RUB | reference | 0.539449 |
73
- | KGS | RUB | reference | 0.977502 |
74
- | KRW | RUB | reference | 0.0636304 |
75
- | KZT | RUB | reference | 0.18843 |
76
- | MDL | RUB | reference | 4.79595 |
77
- | MMK | RUB | reference | 0.0407053 |
78
- | MNT | RUB | reference | 0.0237738 |
79
- | NGN | RUB | reference | 0.0642293 |
80
- | NOK | RUB | reference | 8.93752 |
81
- | NZD | RUB | reference | 48.019 |
82
- | OMR | RUB | reference | 222.3176 |
83
- | PLN | RUB | reference | 21.856 |
84
- | QAR | RUB | reference | 23.4838 |
85
- | RON | RUB | reference | 17.8827 |
86
- | RSD | RUB | reference | 0.817906 |
87
- | SAR | RUB | reference | 22.795 |
88
- | SEK | RUB | reference | 8.56826 |
89
- | SGD | RUB | reference | 66.8395 |
90
- | THB | RUB | reference | 2.53939 |
91
- | TJS | RUB | reference | 9.26032 |
92
- | TMT | RUB | reference | 24.4232 |
93
- | TRY | RUB | reference | 1.73968 |
94
- | UAH | RUB | reference | 1.90534 |
95
- | USD | RUB | reference | 85.4811 |
96
- | UZS | RUB | reference | 0.00724982 |
97
- | VND | RUB | reference | 0.00333416 |
98
- | XDR | RUB | reference | 115.791 |
99
- | ZAR | RUB | reference | 5.14519 |
49
+ | AED | RUB | reference | 23.1191 |
50
+ | AMD | RUB | reference | 0.234589 |
51
+ | AUD | RUB | reference | 59.2551 |
52
+ | AZN | RUB | reference | 49.944 |
53
+ | BDT | RUB | reference | 0.689257 |
54
+ | BHD | RUB | reference | 225.7619 |
55
+ | BOB | RUB | reference | 7.16496 |
56
+ | BRL | RUB | reference | 16.9417 |
57
+ | BYN | RUB | reference | 27.9366 |
58
+ | CAD | RUB | reference | 59.6242 |
59
+ | CHF | RUB | reference | 102.1595 |
60
+ | CNY | RUB | reference | 12.6739 |
61
+ | CUP | RUB | reference | 3.5377 |
62
+ | CZK | RUB | reference | 3.90457 |
63
+ | DKK | RUB | reference | 12.7074 |
64
+ | DZD | RUB | reference | 0.631616 |
65
+ | EGP | RUB | reference | 1.62062 |
66
+ | ETB | RUB | reference | 0.527393 |
67
+ | EUR | RUB | reference | 94.9745 |
68
+ | GBP | RUB | reference | 112.2951 |
69
+ | GEL | RUB | reference | 32.6318 |
70
+ | HKD | RUB | reference | 10.8173 |
71
+ | HUF | RUB | reference | 0.261077 |
72
+ | IDR | RUB | reference | 0.00474594 |
73
+ | INR | RUB | reference | 0.878796 |
74
+ | JPY | RUB | reference | 0.537032 |
75
+ | KGS | RUB | reference | 0.970895 |
76
+ | KRW | RUB | reference | 0.0633996 |
77
+ | KZT | RUB | reference | 0.189123 |
78
+ | MDL | RUB | reference | 4.74321 |
79
+ | MMK | RUB | reference | 0.0404309 |
80
+ | MNT | RUB | reference | 0.0236138 |
81
+ | NGN | RUB | reference | 0.0637375 |
82
+ | NOK | RUB | reference | 8.86207 |
83
+ | NZD | RUB | reference | 47.6189 |
84
+ | OMR | RUB | reference | 221.1063 |
85
+ | PLN | RUB | reference | 21.7582 |
86
+ | QAR | RUB | reference | 23.3255 |
87
+ | RON | RUB | reference | 17.8326 |
88
+ | RSD | RUB | reference | 0.812618 |
89
+ | SAR | RUB | reference | 22.6413 |
90
+ | SEK | RUB | reference | 8.48441 |
91
+ | SGD | RUB | reference | 66.3578 |
92
+ | THB | RUB | reference | 2.53009 |
93
+ | TJS | RUB | reference | 9.19281 |
94
+ | TMT | RUB | reference | 24.2585 |
95
+ | TRY | RUB | reference | 1.72673 |
96
+ | UAH | RUB | reference | 1.89142 |
97
+ | USD | RUB | reference | 84.9048 |
98
+ | UZS | RUB | reference | 0.00716704 |
99
+ | VND | RUB | reference | 0.00331284 |
100
+ | XDR | RUB | reference | 114.7777 |
101
+ | ZAR | RUB | reference | 5.13582 |
100
102
 
101
103
  Source: [Official rates published by CBR, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/cbr/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
102
104
  <!-- daily-table:end -->
@@ -153,10 +155,10 @@ const pair = await getRate('USD', 'RUB', { apiKey: 'art_live_...' });
153
155
  {
154
156
  bank: 'cbr',
155
157
  name: 'Bank of Russia',
156
- rate_date: '2026-10-08', // Bank of Russia's own publication date
158
+ rate_date: '2026-10-10', // Bank of Russia's own publication date
157
159
  source: 'USD',
158
160
  target: 'RUB',
159
- rate: 85.4811,
161
+ rate: 84.9048,
160
162
  rate_type: 'reference',
161
163
  derived: false,
162
164
  method: 'published',
@@ -181,9 +183,9 @@ console.log(table.rate_date, table.rates.length);
181
183
  {
182
184
  bank: 'cbr',
183
185
  name: 'Bank of Russia',
184
- rate_date: '2026-10-08',
186
+ rate_date: '2026-10-10',
185
187
  rates: [
186
- { "base": "USD", "quote": "RUB", "type": "reference", "value": 85.4811 },
188
+ { "base": "USD", "quote": "RUB", "type": "reference", "value": 84.9048 },
187
189
  // โ€ฆ the rest of the published table (54 currencies vs RUB)
188
190
  ],
189
191
  disclaimer: 'โ€ฆ'
@@ -223,7 +225,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
223
225
  import { getHistory } from '@allratestoday/cbr-exchange-rate';
224
226
 
225
227
  const series = await getHistory(
226
- { source: 'USD', target: 'RUB', from: '2026-01-01', to: '2026-10-08' },
228
+ { source: 'USD', target: 'RUB', from: '2026-01-01', to: '2026-10-10' },
227
229
  { apiKey: 'art_live_...' }
228
230
  );
229
231
  ```
@@ -236,11 +238,11 @@ const series = await getHistory(
236
238
  source: 'USD',
237
239
  target: 'RUB',
238
240
  from: '2026-01-01',
239
- to: '2026-10-08',
241
+ to: '2026-10-10',
240
242
  count: 152,
241
243
  rates: [
242
244
  // one entry per publication date
243
- { date: '2026-10-08', rate: 85.4811, rate_type: 'reference', derived: false, method: 'published' },
245
+ { date: '2026-10-10', rate: 84.9048, rate_type: 'reference', derived: false, method: 'published' },
244
246
  // โ€ฆ
245
247
  ],
246
248
  disclaimer: 'โ€ฆ'
@@ -290,6 +292,7 @@ curl "https://allratestoday.com/api/v1/central-bank/cbr/latest?format=xml&api_ke
290
292
  - 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
291
293
  - 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('cbr')` 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
292
294
  - 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 cbr ...` command
295
+ - 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`
293
296
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
294
297
 
295
298
  ## โš–๏ธ Published vs derived rates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allratestoday/cbr-exchange-rate",
3
- "version": "1.3.7",
3
+ "version": "1.3.9",
4
4
  "description": "Official Bank of Russia (Russia) daily exchange rates โ€” 54 currencies vs RUB, history since 2016. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "cbr",