cbar-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.
- package/README.md +37 -34
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,51 +37,53 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
|
|
|
37
37
|
|
|
38
38
|
## ๐ Latest published table
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
[](https://allratestoday.com/central-bank-rates-api/cbar/)
|
|
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-
|
|
45
|
+
Published **2026-10-12** by Central Bank of Azerbaijan โ 38 rates. Updated 2026-10-12.
|
|
44
46
|
|
|
45
47
|
| Base | Quote | Type | Rate |
|
|
46
48
|
| --- | --- | --- | ---: |
|
|
47
49
|
| AED | AZN | reference | 0.4628 |
|
|
48
|
-
| AUD | AZN | reference | 1.
|
|
50
|
+
| AUD | AZN | reference | 1.1863 |
|
|
49
51
|
| BYN | AZN | reference | 0.5638 |
|
|
50
|
-
| CAD | AZN | reference | 1.
|
|
51
|
-
| CHF | AZN | reference | 2.
|
|
52
|
-
| CNY | AZN | reference | 0.
|
|
53
|
-
| CZK | AZN | reference | 0.
|
|
54
|
-
| DKK | AZN | reference | 0.
|
|
55
|
-
| EUR | AZN | reference | 1.
|
|
56
|
-
| GBP | AZN | reference | 2.
|
|
57
|
-
| GEL | AZN | reference | 0.
|
|
52
|
+
| CAD | AZN | reference | 1.1921 |
|
|
53
|
+
| CHF | AZN | reference | 2.0472 |
|
|
54
|
+
| CNY | AZN | reference | 0.254 |
|
|
55
|
+
| CZK | AZN | reference | 0.0782 |
|
|
56
|
+
| DKK | AZN | reference | 0.2549 |
|
|
57
|
+
| EUR | AZN | reference | 1.9053 |
|
|
58
|
+
| GBP | AZN | reference | 2.2514 |
|
|
59
|
+
| GEL | AZN | reference | 0.6557 |
|
|
58
60
|
| HKD | AZN | reference | 0.2166 |
|
|
59
|
-
| HUF | AZN | reference | 0.
|
|
60
|
-
| ILS | AZN | reference | 0.
|
|
61
|
-
| INR | AZN | reference | 0.
|
|
62
|
-
| JPY | AZN | reference | 0.
|
|
61
|
+
| HUF | AZN | reference | 0.00522 |
|
|
62
|
+
| ILS | AZN | reference | 0.5543 |
|
|
63
|
+
| INR | AZN | reference | 0.0178 |
|
|
64
|
+
| JPY | AZN | reference | 0.010737 |
|
|
63
65
|
| KGS | AZN | reference | 0.0194 |
|
|
64
|
-
| KRW | AZN | reference | 0.
|
|
65
|
-
| KWD | AZN | reference | 5.
|
|
66
|
-
| KZT | AZN | reference | 0.
|
|
67
|
-
| MDL | AZN | reference | 0.
|
|
68
|
-
| NOK | AZN | reference | 0.
|
|
69
|
-
| NZD | AZN | reference | 0.
|
|
66
|
+
| KRW | AZN | reference | 0.001274 |
|
|
67
|
+
| KWD | AZN | reference | 5.465 |
|
|
68
|
+
| KZT | AZN | reference | 0.003751 |
|
|
69
|
+
| MDL | AZN | reference | 0.095 |
|
|
70
|
+
| NOK | AZN | reference | 0.1778 |
|
|
71
|
+
| NZD | AZN | reference | 0.9531 |
|
|
70
72
|
| PKR | AZN | reference | 0.006114 |
|
|
71
|
-
| PLN | AZN | reference | 0.
|
|
72
|
-
| QAR | AZN | reference | 0.
|
|
73
|
-
| RON | AZN | reference | 0.
|
|
73
|
+
| PLN | AZN | reference | 0.4342 |
|
|
74
|
+
| QAR | AZN | reference | 0.4663 |
|
|
75
|
+
| RON | AZN | reference | 0.3571 |
|
|
74
76
|
| RSD | AZN | reference | 0.0162 |
|
|
75
|
-
| RUB | AZN | reference | 0.
|
|
76
|
-
| SAR | AZN | reference | 0.
|
|
77
|
-
| SDR | AZN | reference | 2.
|
|
77
|
+
| RUB | AZN | reference | 0.019948 |
|
|
78
|
+
| SAR | AZN | reference | 0.4527 |
|
|
79
|
+
| SDR | AZN | reference | 2.3005 |
|
|
78
80
|
| SEK | AZN | reference | 0.1701 |
|
|
79
|
-
| SGD | AZN | reference | 1.
|
|
81
|
+
| SGD | AZN | reference | 1.3284 |
|
|
80
82
|
| TMT | AZN | reference | 0.4857 |
|
|
81
83
|
| TRY | AZN | reference | 0.0345 |
|
|
82
84
|
| UAH | AZN | reference | 0.0379 |
|
|
83
85
|
| USD | AZN | reference | 1.7 |
|
|
84
|
-
| UZS | AZN | reference | 0.
|
|
86
|
+
| UZS | AZN | reference | 0.000143 |
|
|
85
87
|
|
|
86
88
|
Source: [Official rates published by CBAR, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/cbar/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
|
|
87
89
|
<!-- daily-table:end -->
|
|
@@ -138,7 +140,7 @@ const pair = await getRate('USD', 'AZN', { apiKey: 'art_live_...' });
|
|
|
138
140
|
{
|
|
139
141
|
bank: 'cbar',
|
|
140
142
|
name: 'Central Bank of Azerbaijan',
|
|
141
|
-
rate_date: '2026-10-
|
|
143
|
+
rate_date: '2026-10-12', // Central Bank of Azerbaijan's own publication date
|
|
142
144
|
source: 'USD',
|
|
143
145
|
target: 'AZN',
|
|
144
146
|
rate: 1.7,
|
|
@@ -166,7 +168,7 @@ console.log(table.rate_date, table.rates.length);
|
|
|
166
168
|
{
|
|
167
169
|
bank: 'cbar',
|
|
168
170
|
name: 'Central Bank of Azerbaijan',
|
|
169
|
-
rate_date: '2026-10-
|
|
171
|
+
rate_date: '2026-10-12',
|
|
170
172
|
rates: [
|
|
171
173
|
{ "base": "USD", "quote": "AZN", "type": "reference", "value": 1.7 },
|
|
172
174
|
// โฆ the rest of the published table (38 currencies vs AZN)
|
|
@@ -208,7 +210,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
208
210
|
import { getHistory } from 'cbar-exchange-rate';
|
|
209
211
|
|
|
210
212
|
const series = await getHistory(
|
|
211
|
-
{ source: 'USD', target: 'AZN', from: '2026-01-01', to: '2026-10-
|
|
213
|
+
{ source: 'USD', target: 'AZN', from: '2026-01-01', to: '2026-10-12' },
|
|
212
214
|
{ apiKey: 'art_live_...' }
|
|
213
215
|
);
|
|
214
216
|
```
|
|
@@ -221,11 +223,11 @@ const series = await getHistory(
|
|
|
221
223
|
source: 'USD',
|
|
222
224
|
target: 'AZN',
|
|
223
225
|
from: '2026-01-01',
|
|
224
|
-
to: '2026-10-
|
|
226
|
+
to: '2026-10-12',
|
|
225
227
|
count: 152,
|
|
226
228
|
rates: [
|
|
227
229
|
// one entry per publication date
|
|
228
|
-
{ date: '2026-10-
|
|
230
|
+
{ date: '2026-10-12', rate: 1.7, rate_type: 'reference', derived: false, method: 'published' },
|
|
229
231
|
// โฆ
|
|
230
232
|
],
|
|
231
233
|
disclaimer: 'โฆ'
|
|
@@ -275,6 +277,7 @@ curl "https://allratestoday.com/api/v1/central-bank/cbar/latest?format=xml&api_k
|
|
|
275
277
|
- 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
|
|
276
278
|
- 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('cbar')` 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
|
|
277
279
|
- 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 cbar ...` command
|
|
280
|
+
- 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`
|
|
278
281
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
279
282
|
|
|
280
283
|
## โ๏ธ Published vs derived rates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cbar-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"description": "Official Central Bank of Azerbaijan (Azerbaijan) daily exchange rates โ 38 currencies vs AZN, history since 2016. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cbar",
|