@allratestoday/cbr-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.
Files changed (2) hide show
  1. package/README.md +78 -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,74 @@ 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
+ [![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.
43
+
44
+ <!-- daily-table:start -->
45
+ Published **2026-10-10** by Bank of Russia โ€” 53 rates. Updated 2026-10-12.
46
+
47
+ | Base | Quote | Type | Rate |
48
+ | --- | --- | --- | ---: |
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 |
102
+
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.
104
+ <!-- daily-table:end -->
105
+
36
106
  ## ๐Ÿ”‘ Get your API key
37
107
 
38
108
  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 +155,10 @@ const pair = await getRate('USD', 'RUB', { apiKey: 'art_live_...' });
85
155
  {
86
156
  bank: 'cbr',
87
157
  name: 'Bank of Russia',
88
- 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
89
159
  source: 'USD',
90
160
  target: 'RUB',
91
- rate: 85.4811,
161
+ rate: 84.9048,
92
162
  rate_type: 'reference',
93
163
  derived: false,
94
164
  method: 'published',
@@ -113,9 +183,9 @@ console.log(table.rate_date, table.rates.length);
113
183
  {
114
184
  bank: 'cbr',
115
185
  name: 'Bank of Russia',
116
- rate_date: '2026-10-08',
186
+ rate_date: '2026-10-10',
117
187
  rates: [
118
- { "base": "USD", "quote": "RUB", "type": "reference", "value": 85.4811 },
188
+ { "base": "USD", "quote": "RUB", "type": "reference", "value": 84.9048 },
119
189
  // โ€ฆ the rest of the published table (54 currencies vs RUB)
120
190
  ],
121
191
  disclaimer: 'โ€ฆ'
@@ -155,7 +225,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
155
225
  import { getHistory } from '@allratestoday/cbr-exchange-rate';
156
226
 
157
227
  const series = await getHistory(
158
- { 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' },
159
229
  { apiKey: 'art_live_...' }
160
230
  );
161
231
  ```
@@ -168,11 +238,11 @@ const series = await getHistory(
168
238
  source: 'USD',
169
239
  target: 'RUB',
170
240
  from: '2026-01-01',
171
- to: '2026-10-08',
241
+ to: '2026-10-10',
172
242
  count: 152,
173
243
  rates: [
174
244
  // one entry per publication date
175
- { 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' },
176
246
  // โ€ฆ
177
247
  ],
178
248
  disclaimer: 'โ€ฆ'
@@ -222,6 +292,7 @@ curl "https://allratestoday.com/api/v1/central-bank/cbr/latest?format=xml&api_ke
222
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
223
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
224
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`
225
296
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
226
297
 
227
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.6",
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",