cba-exchange-rate 1.3.8 → 1.3.13

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 +43 -41
  2. package/package.json +11 -3
package/README.md CHANGED
@@ -37,43 +37,45 @@ 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 Central Bank of Armenia 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 Central Bank of Armenia table](https://allratestoday.com/api/open/central-bank/cba/table.svg)](https://allratestoday.com/central-bank-rates-api/cba/)
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-12** by Central Bank of Armenia — 30 rates. Updated 2026-10-12.
45
+ Published **2026-10-14** by Central Bank of Armenia — 30 rates. Updated 2026-10-14.
44
46
 
45
47
  | Base | Quote | Type | Rate |
46
48
  | --- | --- | --- | ---: |
47
- | AED | AMD | reference | 98.614 |
48
- | AUD | AMD | reference | 252.42 |
49
- | BRL | AMD | reference | 72.629 |
50
- | BYN | AMD | reference | 119.18 |
51
- | CAD | AMD | reference | 253.93 |
52
- | CHF | AMD | reference | 434.77 |
53
- | CNY | AMD | reference | 54.115 |
54
- | CZK | AMD | reference | 16.599 |
55
- | EUR | AMD | reference | 404.88 |
56
- | GBP | AMD | reference | 479.2 |
57
- | GEL | AMD | reference | 139.47 |
58
- | HKD | AMD | reference | 46.156 |
59
- | INR | AMD | reference | 3.7829 |
60
- | IRR | AMD | reference | 0.00020364 |
61
- | JPY | AMD | reference | 2.2835 |
62
- | KGS | AMD | reference | 4.1407 |
63
- | KZT | AMD | reference | 0.80404 |
64
- | NOK | AMD | reference | 37.824 |
65
- | NZD | AMD | reference | 202.66 |
66
- | PLN | AMD | reference | 92.259 |
67
- | RUB | AMD | reference | 4.2997 |
68
- | SEK | AMD | reference | 36.122 |
69
- | SGD | AMD | reference | 282.84 |
70
- | TJS | AMD | reference | 39.217 |
71
- | UAH | AMD | reference | 8.0464 |
72
- | USD | AMD | reference | 362.21 |
73
- | UZS | AMD | reference | 0.030429 |
74
- | XAG | AMD | reference | 21805.092 |
75
- | XAU | AMD | reference | 1516325.6 |
76
- | XDR | AMD | reference | 490.16 |
49
+ | AED | AMD | reference | 98.41 |
50
+ | AUD | AMD | reference | 253.22 |
51
+ | BRL | AMD | reference | 71.896 |
52
+ | BYN | AMD | reference | 120.08 |
53
+ | CAD | AMD | reference | 254.31 |
54
+ | CHF | AMD | reference | 433.58 |
55
+ | CNY | AMD | reference | 53.998 |
56
+ | CZK | AMD | reference | 16.608 |
57
+ | EUR | AMD | reference | 404.4 |
58
+ | GBP | AMD | reference | 479.36 |
59
+ | GEL | AMD | reference | 139.01 |
60
+ | HKD | AMD | reference | 46.054 |
61
+ | INR | AMD | reference | 3.8033 |
62
+ | IRR | AMD | reference | 0.00020078 |
63
+ | JPY | AMD | reference | 2.2812 |
64
+ | KGS | AMD | reference | 4.1319 |
65
+ | KZT | AMD | reference | 0.80017 |
66
+ | NOK | AMD | reference | 38.056 |
67
+ | NZD | AMD | reference | 202.98 |
68
+ | PLN | AMD | reference | 92.643 |
69
+ | RUB | AMD | reference | 4.302 |
70
+ | SEK | AMD | reference | 36.256 |
71
+ | SGD | AMD | reference | 281.84 |
72
+ | TJS | AMD | reference | 39.11 |
73
+ | UAH | AMD | reference | 8.0402 |
74
+ | USD | AMD | reference | 361.43 |
75
+ | UZS | AMD | reference | 0.030265 |
76
+ | XAG | AMD | reference | 21761.548 |
77
+ | XAU | AMD | reference | 1506994.6 |
78
+ | XDR | AMD | reference | 488.88 |
77
79
 
78
80
  Source: [Official rates published by CBA, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/cba/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
79
81
  <!-- daily-table:end -->
@@ -130,10 +132,10 @@ const pair = await getRate('USD', 'AMD', { apiKey: 'art_live_...' });
130
132
  {
131
133
  bank: 'cba',
132
134
  name: 'Central Bank of Armenia',
133
- rate_date: '2026-10-12', // Central Bank of Armenia's own publication date
135
+ rate_date: '2026-10-14', // Central Bank of Armenia's own publication date
134
136
  source: 'USD',
135
137
  target: 'AMD',
136
- rate: 362.21,
138
+ rate: 361.43,
137
139
  rate_type: 'reference',
138
140
  derived: false,
139
141
  method: 'published',
@@ -158,9 +160,9 @@ console.log(table.rate_date, table.rates.length);
158
160
  {
159
161
  bank: 'cba',
160
162
  name: 'Central Bank of Armenia',
161
- rate_date: '2026-10-12',
163
+ rate_date: '2026-10-14',
162
164
  rates: [
163
- { "base": "USD", "quote": "AMD", "type": "reference", "value": 362.21 },
165
+ { "base": "USD", "quote": "AMD", "type": "reference", "value": 361.43 },
164
166
  // … the rest of the published table (30 currencies vs AMD)
165
167
  ],
166
168
  disclaimer: '…'
@@ -200,7 +202,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
200
202
  import { getHistory } from 'cba-exchange-rate';
201
203
 
202
204
  const series = await getHistory(
203
- { source: 'USD', target: 'AMD', from: '2026-01-01', to: '2026-10-12' },
205
+ { source: 'USD', target: 'AMD', from: '2026-01-01', to: '2026-10-14' },
204
206
  { apiKey: 'art_live_...' }
205
207
  );
206
208
  ```
@@ -213,11 +215,11 @@ const series = await getHistory(
213
215
  source: 'USD',
214
216
  target: 'AMD',
215
217
  from: '2026-01-01',
216
- to: '2026-10-12',
218
+ to: '2026-10-14',
217
219
  count: 152,
218
220
  rates: [
219
221
  // one entry per publication date
220
- { date: '2026-10-12', rate: 362.21, rate_type: 'reference', derived: false, method: 'published' },
222
+ { date: '2026-10-14', rate: 361.43, rate_type: 'reference', derived: false, method: 'published' },
221
223
  // …
222
224
  ],
223
225
  disclaimer: '…'
@@ -337,9 +339,9 @@ getRate('USD', 'AMD', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
337
339
 
338
340
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
339
341
 
340
- - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) — one CSV per institution (`rates/cba.csv`)
342
+ - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/cba.csv`)
341
343
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
342
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/cba/latest.json`
344
+ - Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/cba/latest.json`
343
345
 
344
346
  ## 🔗 Links
345
347
 
package/package.json CHANGED
@@ -1,22 +1,30 @@
1
1
  {
2
2
  "name": "cba-exchange-rate",
3
- "version": "1.3.8",
3
+ "version": "1.3.13",
4
4
  "description": "Official Central Bank of Armenia (Armenia) daily exchange rates — 30 currencies vs AMD, history since 2000. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "cba",
7
+ "central-bank-of-armenia",
7
8
  "central",
8
9
  "bank",
9
- "of",
10
10
  "armenia",
11
11
  "exchange-rate",
12
12
  "exchange-rates",
13
+ "exchangerate",
14
+ "exchange rate",
15
+ "amd-exchange-rate",
13
16
  "currency",
14
17
  "forex",
15
18
  "fx",
16
19
  "amd",
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
- "armenia",
20
28
  "api",
21
29
  "typescript"
22
30
  ],