@allratestoday/cbr-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.
Files changed (2) hide show
  1. package/README.md +76 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
  [![license](https://img.shields.io/npm/l/@allratestoday%2Fcbr-exchange-rate.svg)](https://github.com/AllRates-Today/cbr-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/@allratestoday/cbr-exchange-rate)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)
7
+ [![USD/RUB today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fcbr%3Fsource%3DUSD%26target%3DRUB&query=%24.rate&label=USD%2FRUB%20published%20by%20Bank%20of%20Russia&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/cbr/)
8
+ [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fcbr%3Fsource%3DUSD%26target%3DRUB&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/cbr/)
7
9
 
8
10
  **Official Bank of Russia (Russia) 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 Bank of Russia itself prints, every business day.**
9
11
 
@@ -33,6 +35,72 @@ 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 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.
41
+
42
+ <!-- daily-table:start -->
43
+ Published **2026-10-08** by Bank of Russia โ€” 53 rates. Updated 2026-10-08.
44
+
45
+ | Base | Quote | Type | Rate |
46
+ | --- | --- | --- | ---: |
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 |
100
+
101
+ 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
+ <!-- daily-table:end -->
103
+
36
104
  ## ๐Ÿ”‘ Get your API key
37
105
 
38
106
  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 +153,10 @@ const pair = await getRate('USD', 'RUB', { apiKey: 'art_live_...' });
85
153
  {
86
154
  bank: 'cbr',
87
155
  name: 'Bank of Russia',
88
- rate_date: '2026-10-03', // Bank of Russia's own publication date
156
+ rate_date: '2026-10-08', // Bank of Russia's own publication date
89
157
  source: 'USD',
90
158
  target: 'RUB',
91
- rate: 83.4839,
159
+ rate: 85.4811,
92
160
  rate_type: 'reference',
93
161
  derived: false,
94
162
  method: 'published',
@@ -113,9 +181,9 @@ console.log(table.rate_date, table.rates.length);
113
181
  {
114
182
  bank: 'cbr',
115
183
  name: 'Bank of Russia',
116
- rate_date: '2026-10-03',
184
+ rate_date: '2026-10-08',
117
185
  rates: [
118
- { "base": "USD", "quote": "RUB", "type": "reference", "value": 83.4839 },
186
+ { "base": "USD", "quote": "RUB", "type": "reference", "value": 85.4811 },
119
187
  // โ€ฆ the rest of the published table (54 currencies vs RUB)
120
188
  ],
121
189
  disclaimer: 'โ€ฆ'
@@ -155,7 +223,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
155
223
  import { getHistory } from '@allratestoday/cbr-exchange-rate';
156
224
 
157
225
  const series = await getHistory(
158
- { source: 'USD', target: 'RUB', from: '2026-01-01', to: '2026-10-03' },
226
+ { source: 'USD', target: 'RUB', from: '2026-01-01', to: '2026-10-08' },
159
227
  { apiKey: 'art_live_...' }
160
228
  );
161
229
  ```
@@ -168,11 +236,11 @@ const series = await getHistory(
168
236
  source: 'USD',
169
237
  target: 'RUB',
170
238
  from: '2026-01-01',
171
- to: '2026-10-03',
239
+ to: '2026-10-08',
172
240
  count: 152,
173
241
  rates: [
174
242
  // one entry per publication date
175
- { date: '2026-10-03', rate: 83.4839, rate_type: 'reference', derived: false, method: 'published' },
243
+ { date: '2026-10-08', rate: 85.4811, rate_type: 'reference', derived: false, method: 'published' },
176
244
  // โ€ฆ
177
245
  ],
178
246
  disclaimer: 'โ€ฆ'
@@ -221,6 +289,7 @@ curl "https://allratestoday.com/api/v1/central-bank/cbr/latest?format=xml&api_ke
221
289
 
222
290
  - 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
223
291
  - 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
+ - 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
224
293
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
225
294
 
226
295
  ## โš–๏ธ 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.5",
3
+ "version": "1.3.7",
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",