cba-exchange-rate 1.3.9 → 1.3.14

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 +41 -41
  2. package/package.json +11 -3
package/README.md CHANGED
@@ -42,40 +42,40 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
42
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
43
 
44
44
  <!-- daily-table:start -->
45
- Published **2026-10-12** by Central Bank of Armenia — 30 rates. Updated 2026-10-12.
45
+ Published **2026-10-16** by Central Bank of Armenia — 30 rates. Updated 2026-10-16.
46
46
 
47
47
  | Base | Quote | Type | Rate |
48
48
  | --- | --- | --- | ---: |
49
- | AED | AMD | reference | 98.614 |
50
- | AUD | AMD | reference | 252.42 |
51
- | BRL | AMD | reference | 72.629 |
52
- | BYN | AMD | reference | 119.18 |
53
- | CAD | AMD | reference | 253.93 |
54
- | CHF | AMD | reference | 434.77 |
55
- | CNY | AMD | reference | 54.115 |
56
- | CZK | AMD | reference | 16.599 |
57
- | EUR | AMD | reference | 404.88 |
58
- | GBP | AMD | reference | 479.2 |
59
- | GEL | AMD | reference | 139.47 |
60
- | HKD | AMD | reference | 46.156 |
61
- | INR | AMD | reference | 3.7829 |
62
- | IRR | AMD | reference | 0.00020364 |
63
- | JPY | AMD | reference | 2.2835 |
64
- | KGS | AMD | reference | 4.1407 |
65
- | KZT | AMD | reference | 0.80404 |
66
- | NOK | AMD | reference | 37.824 |
67
- | NZD | AMD | reference | 202.66 |
68
- | PLN | AMD | reference | 92.259 |
69
- | RUB | AMD | reference | 4.2997 |
70
- | SEK | AMD | reference | 36.122 |
71
- | SGD | AMD | reference | 282.84 |
72
- | TJS | AMD | reference | 39.217 |
73
- | UAH | AMD | reference | 8.0464 |
74
- | USD | AMD | reference | 362.21 |
75
- | UZS | AMD | reference | 0.030429 |
76
- | XAG | AMD | reference | 21805.092 |
77
- | XAU | AMD | reference | 1516325.6 |
78
- | XDR | AMD | reference | 490.16 |
49
+ | AED | AMD | reference | 98.65 |
50
+ | AUD | AMD | reference | 252.26 |
51
+ | BRL | AMD | reference | 71.099 |
52
+ | BYN | AMD | reference | 120.41 |
53
+ | CAD | AMD | reference | 256.03 |
54
+ | CHF | AMD | reference | 440.27 |
55
+ | CNY | AMD | reference | 54.193 |
56
+ | CZK | AMD | reference | 16.769 |
57
+ | EUR | AMD | reference | 407.92 |
58
+ | GBP | AMD | reference | 483.25 |
59
+ | GEL | AMD | reference | 139.6 |
60
+ | HKD | AMD | reference | 46.169 |
61
+ | INR | AMD | reference | 3.8133 |
62
+ | IRR | AMD | reference | 0.00020008 |
63
+ | JPY | AMD | reference | 2.2943 |
64
+ | KGS | AMD | reference | 4.142 |
65
+ | KZT | AMD | reference | 0.80072 |
66
+ | NOK | AMD | reference | 38.398 |
67
+ | NZD | AMD | reference | 205.34 |
68
+ | PLN | AMD | reference | 93.367 |
69
+ | RUB | AMD | reference | 4.3346 |
70
+ | SEK | AMD | reference | 36.629 |
71
+ | SGD | AMD | reference | 283.3 |
72
+ | TJS | AMD | reference | 39.231 |
73
+ | UAH | AMD | reference | 8.0776 |
74
+ | USD | AMD | reference | 362.34 |
75
+ | UZS | AMD | reference | 0.030095 |
76
+ | XAG | AMD | reference | 20550.067 |
77
+ | XAU | AMD | reference | 1504537.4 |
78
+ | XDR | AMD | reference | 490.61 |
79
79
 
80
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.
81
81
  <!-- daily-table:end -->
@@ -132,10 +132,10 @@ const pair = await getRate('USD', 'AMD', { apiKey: 'art_live_...' });
132
132
  {
133
133
  bank: 'cba',
134
134
  name: 'Central Bank of Armenia',
135
- 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
136
136
  source: 'USD',
137
137
  target: 'AMD',
138
- rate: 362.21,
138
+ rate: 361.43,
139
139
  rate_type: 'reference',
140
140
  derived: false,
141
141
  method: 'published',
@@ -160,9 +160,9 @@ console.log(table.rate_date, table.rates.length);
160
160
  {
161
161
  bank: 'cba',
162
162
  name: 'Central Bank of Armenia',
163
- rate_date: '2026-10-12',
163
+ rate_date: '2026-10-14',
164
164
  rates: [
165
- { "base": "USD", "quote": "AMD", "type": "reference", "value": 362.21 },
165
+ { "base": "USD", "quote": "AMD", "type": "reference", "value": 361.43 },
166
166
  // … the rest of the published table (30 currencies vs AMD)
167
167
  ],
168
168
  disclaimer: '…'
@@ -202,7 +202,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
202
202
  import { getHistory } from 'cba-exchange-rate';
203
203
 
204
204
  const series = await getHistory(
205
- { 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' },
206
206
  { apiKey: 'art_live_...' }
207
207
  );
208
208
  ```
@@ -215,11 +215,11 @@ const series = await getHistory(
215
215
  source: 'USD',
216
216
  target: 'AMD',
217
217
  from: '2026-01-01',
218
- to: '2026-10-12',
218
+ to: '2026-10-14',
219
219
  count: 152,
220
220
  rates: [
221
221
  // one entry per publication date
222
- { 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' },
223
223
  // …
224
224
  ],
225
225
  disclaimer: '…'
@@ -270,7 +270,7 @@ curl "https://allratestoday.com/api/v1/central-bank/cba/latest?format=xml&api_ke
270
270
  - 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
271
271
  - 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('cba')` 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
272
272
  - 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 cba ...` command
273
- - 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`
273
+ - Evaluating? 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 that covers the free-plan methods (latest table, pairs); dated tables and history need a [paid plan](https://allratestoday.com/pricing/). The MCP servers expose it as `request_trial_key`
274
274
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
275
275
 
276
276
  ## ⚖️ Published vs derived rates
@@ -339,9 +339,9 @@ getRate('USD', 'AMD', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
339
339
 
340
340
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
341
341
 
342
- - 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`)
343
343
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
344
- - 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`
345
345
 
346
346
  ## 🔗 Links
347
347
 
package/package.json CHANGED
@@ -1,22 +1,30 @@
1
1
  {
2
2
  "name": "cba-exchange-rate",
3
- "version": "1.3.9",
3
+ "version": "1.3.14",
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
  ],