cbar-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 +59 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
  [![license](https://img.shields.io/npm/l/cbar-exchange-rate.svg)](https://github.com/AllRates-Today/cbar-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/cbar-exchange-rate)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)
7
+ [![USD/AZN today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fcbar%3Fsource%3DUSD%26target%3DAZN&query=%24.rate&label=USD%2FAZN%20published%20by%20Central%20Bank%20of%20Azerbaijan&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/cbar/)
8
+ [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fcbar%3Fsource%3DUSD%26target%3DAZN&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/cbar/)
7
9
 
8
10
  **Official Central Bank of Azerbaijan (Azerbaijan) 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 Central Bank of Azerbaijan itself prints, every business day.**
9
11
 
@@ -33,6 +35,57 @@ 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 Central Bank of Azerbaijan 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 Central Bank of Azerbaijan โ€” 38 rates. Updated 2026-10-08.
44
+
45
+ | Base | Quote | Type | Rate |
46
+ | --- | --- | --- | ---: |
47
+ | AED | AZN | reference | 0.4628 |
48
+ | AUD | AZN | reference | 1.1824 |
49
+ | BYN | AZN | reference | 0.5638 |
50
+ | CAD | AZN | reference | 1.1919 |
51
+ | CHF | AZN | reference | 2.0409 |
52
+ | CNY | AZN | reference | 0.2536 |
53
+ | CZK | AZN | reference | 0.078 |
54
+ | DKK | AZN | reference | 0.2548 |
55
+ | EUR | AZN | reference | 1.9048 |
56
+ | GBP | AZN | reference | 2.2455 |
57
+ | GEL | AZN | reference | 0.6547 |
58
+ | HKD | AZN | reference | 0.2166 |
59
+ | HUF | AZN | reference | 0.005205 |
60
+ | ILS | AZN | reference | 0.5546 |
61
+ | INR | AZN | reference | 0.0176 |
62
+ | JPY | AZN | reference | 0.010743 |
63
+ | KGS | AZN | reference | 0.0194 |
64
+ | KRW | AZN | reference | 0.00127 |
65
+ | KWD | AZN | reference | 5.4759 |
66
+ | KZT | AZN | reference | 0.0038 |
67
+ | MDL | AZN | reference | 0.0954 |
68
+ | NOK | AZN | reference | 0.1776 |
69
+ | NZD | AZN | reference | 0.9526 |
70
+ | PKR | AZN | reference | 0.006114 |
71
+ | PLN | AZN | reference | 0.4351 |
72
+ | QAR | AZN | reference | 0.4664 |
73
+ | RON | AZN | reference | 0.3558 |
74
+ | RSD | AZN | reference | 0.0162 |
75
+ | RUB | AZN | reference | 0.019883 |
76
+ | SAR | AZN | reference | 0.4528 |
77
+ | SDR | AZN | reference | 2.2987 |
78
+ | SEK | AZN | reference | 0.1701 |
79
+ | SGD | AZN | reference | 1.3278 |
80
+ | TMT | AZN | reference | 0.4857 |
81
+ | TRY | AZN | reference | 0.0345 |
82
+ | UAH | AZN | reference | 0.0379 |
83
+ | USD | AZN | reference | 1.7 |
84
+ | UZS | AZN | reference | 0.000144 |
85
+
86
+ 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
+ <!-- daily-table:end -->
88
+
36
89
  ## ๐Ÿ”‘ Get your API key
37
90
 
38
91
  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,7 +138,7 @@ const pair = await getRate('USD', 'AZN', { apiKey: 'art_live_...' });
85
138
  {
86
139
  bank: 'cbar',
87
140
  name: 'Central Bank of Azerbaijan',
88
- rate_date: '2026-10-06', // Central Bank of Azerbaijan's own publication date
141
+ rate_date: '2026-10-08', // Central Bank of Azerbaijan's own publication date
89
142
  source: 'USD',
90
143
  target: 'AZN',
91
144
  rate: 1.7,
@@ -113,7 +166,7 @@ console.log(table.rate_date, table.rates.length);
113
166
  {
114
167
  bank: 'cbar',
115
168
  name: 'Central Bank of Azerbaijan',
116
- rate_date: '2026-10-06',
169
+ rate_date: '2026-10-08',
117
170
  rates: [
118
171
  { "base": "USD", "quote": "AZN", "type": "reference", "value": 1.7 },
119
172
  // โ€ฆ the rest of the published table (38 currencies vs AZN)
@@ -155,7 +208,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
155
208
  import { getHistory } from 'cbar-exchange-rate';
156
209
 
157
210
  const series = await getHistory(
158
- { source: 'USD', target: 'AZN', from: '2026-01-01', to: '2026-10-06' },
211
+ { source: 'USD', target: 'AZN', from: '2026-01-01', to: '2026-10-08' },
159
212
  { apiKey: 'art_live_...' }
160
213
  );
161
214
  ```
@@ -168,11 +221,11 @@ const series = await getHistory(
168
221
  source: 'USD',
169
222
  target: 'AZN',
170
223
  from: '2026-01-01',
171
- to: '2026-10-06',
224
+ to: '2026-10-08',
172
225
  count: 152,
173
226
  rates: [
174
227
  // one entry per publication date
175
- { date: '2026-10-06', rate: 1.7, rate_type: 'reference', derived: false, method: 'published' },
228
+ { date: '2026-10-08', rate: 1.7, rate_type: 'reference', derived: false, method: 'published' },
176
229
  // โ€ฆ
177
230
  ],
178
231
  disclaimer: 'โ€ฆ'
@@ -221,6 +274,7 @@ curl "https://allratestoday.com/api/v1/central-bank/cbar/latest?format=xml&api_k
221
274
 
222
275
  - 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
276
  - 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
+ - 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
224
278
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
225
279
 
226
280
  ## โš–๏ธ Published vs derived rates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cbar-exchange-rate",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
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",