cbm-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 +44 -42
  2. package/package.json +11 -3
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
- Today's full Central Bank of Myanmar 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 Myanmar table](https://allratestoday.com/api/open/central-bank/cbm/table.svg)](https://allratestoday.com/central-bank-rates-api/cbm/)
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 Myanmar — 38 rates. Updated 2026-10-12.
45
+ Published **2026-10-13** by Central Bank of Myanmar — 38 rates. Updated 2026-10-14.
44
46
 
45
47
  | Base | Quote | Type | Rate |
46
48
  | --- | --- | --- | ---: |
47
- | AUD | MMK | reference | 1465.8 |
48
- | BDT | MMK | reference | 17.06 |
49
- | BND | MMK | reference | 1640.82 |
50
- | BRL | MMK | reference | 420.65 |
51
- | CAD | MMK | reference | 1473.12 |
52
- | CHF | MMK | reference | 2525.1 |
53
- | CNY | MMK | reference | 313.79 |
54
- | CZK | MMK | reference | 96.53 |
55
- | DKK | MMK | reference | 314.8 |
56
- | EGP | MMK | reference | 39.92 |
57
- | EUR | MMK | reference | 2352.95 |
58
- | GBP | MMK | reference | 2781.14 |
59
- | HKD | MMK | reference | 267.6 |
60
- | IDR | MMK | reference | 0.1173 |
61
- | ILS | MMK | reference | 685.05 |
62
- | INR | MMK | reference | 21.93 |
63
- | JPY | MMK | reference | 13.2538 |
64
- | KES | MMK | reference | 16.18 |
65
- | KHR | MMK | reference | 0.5173 |
66
- | KRW | MMK | reference | 1.577 |
67
- | KWD | MMK | reference | 6814.86 |
49
+ | AUD | MMK | reference | 1462.86 |
50
+ | BDT | MMK | reference | 17.05 |
51
+ | BND | MMK | reference | 1640.43 |
52
+ | BRL | MMK | reference | 421.09 |
53
+ | CAD | MMK | reference | 1472.24 |
54
+ | CHF | MMK | reference | 2520.71 |
55
+ | CNY | MMK | reference | 313.69 |
56
+ | CZK | MMK | reference | 96.44 |
57
+ | DKK | MMK | reference | 314.27 |
58
+ | EGP | MMK | reference | 39.81 |
59
+ | EUR | MMK | reference | 2349.27 |
60
+ | GBP | MMK | reference | 2778.83 |
61
+ | HKD | MMK | reference | 267.59 |
62
+ | IDR | MMK | reference | 0.1174 |
63
+ | ILS | MMK | reference | 682.77 |
64
+ | INR | MMK | reference | 22.06 |
65
+ | JPY | MMK | reference | 13.2714 |
66
+ | KES | MMK | reference | 16.19 |
67
+ | KHR | MMK | reference | 0.516 |
68
+ | KRW | MMK | reference | 1.5638 |
69
+ | KWD | MMK | reference | 6811.55 |
68
70
  | LAK | MMK | reference | 0.0934 |
69
71
  | LKR | MMK | reference | 6.35 |
70
- | MYR | MMK | reference | 514.26 |
71
- | NOK | MMK | reference | 219.41 |
72
- | NPR | MMK | reference | 13.71 |
73
- | NZD | MMK | reference | 1176.74 |
74
- | PHP | MMK | reference | 33.46 |
72
+ | MYR | MMK | reference | 514.01 |
73
+ | NOK | MMK | reference | 219.89 |
74
+ | NPR | MMK | reference | 13.79 |
75
+ | NZD | MMK | reference | 1176.63 |
76
+ | PHP | MMK | reference | 33.44 |
75
77
  | PKR | MMK | reference | 7.58 |
76
- | RSD | MMK | reference | 20.04 |
77
- | RUB | MMK | reference | 24.99 |
78
+ | RSD | MMK | reference | 20.01 |
79
+ | RUB | MMK | reference | 25.08 |
78
80
  | SAR | MMK | reference | 559.15 |
79
- | SEK | MMK | reference | 210.01 |
80
- | SGD | MMK | reference | 1640.82 |
81
- | THB | MMK | reference | 62.57 |
81
+ | SEK | MMK | reference | 209.96 |
82
+ | SGD | MMK | reference | 1640.43 |
83
+ | THB | MMK | reference | 62.62 |
82
84
  | USD | MMK | reference | 2100 |
83
- | VND | MMK | reference | 0.0811 |
84
- | ZAR | MMK | reference | 127.28 |
85
+ | VND | MMK | reference | 0.081 |
86
+ | ZAR | MMK | reference | 127.49 |
85
87
 
86
88
  Source: [Official rates published by CBM, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/cbm/). 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', 'MMK', { apiKey: 'art_live_...' });
138
140
  {
139
141
  bank: 'cbm',
140
142
  name: 'Central Bank of Myanmar',
141
- rate_date: '2026-10-12', // Central Bank of Myanmar's own publication date
143
+ rate_date: '2026-10-13', // Central Bank of Myanmar's own publication date
142
144
  source: 'USD',
143
145
  target: 'MMK',
144
146
  rate: 2100,
@@ -166,7 +168,7 @@ console.log(table.rate_date, table.rates.length);
166
168
  {
167
169
  bank: 'cbm',
168
170
  name: 'Central Bank of Myanmar',
169
- rate_date: '2026-10-12',
171
+ rate_date: '2026-10-13',
170
172
  rates: [
171
173
  { "base": "USD", "quote": "MMK", "type": "reference", "value": 2100 },
172
174
  // … the rest of the published table (38 currencies vs MMK)
@@ -208,7 +210,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
208
210
  import { getHistory } from 'cbm-exchange-rate';
209
211
 
210
212
  const series = await getHistory(
211
- { source: 'USD', target: 'MMK', from: '2026-01-01', to: '2026-10-12' },
213
+ { source: 'USD', target: 'MMK', from: '2026-01-01', to: '2026-10-13' },
212
214
  { apiKey: 'art_live_...' }
213
215
  );
214
216
  ```
@@ -221,11 +223,11 @@ const series = await getHistory(
221
223
  source: 'USD',
222
224
  target: 'MMK',
223
225
  from: '2026-01-01',
224
- to: '2026-10-12',
226
+ to: '2026-10-13',
225
227
  count: 152,
226
228
  rates: [
227
229
  // one entry per publication date
228
- { date: '2026-10-12', rate: 2100, rate_type: 'reference', derived: false, method: 'published' },
230
+ { date: '2026-10-13', rate: 2100, rate_type: 'reference', derived: false, method: 'published' },
229
231
  // …
230
232
  ],
231
233
  disclaimer: '…'
@@ -344,9 +346,9 @@ getRate('USD', 'MMK', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
344
346
 
345
347
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
346
348
 
347
- - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) — one CSV per institution (`rates/cbm.csv`)
349
+ - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/cbm.csv`)
348
350
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
349
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/cbm/latest.json`
351
+ - Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/cbm/latest.json`
350
352
 
351
353
  ## 🔗 Links
352
354
 
package/package.json CHANGED
@@ -1,22 +1,30 @@
1
1
  {
2
2
  "name": "cbm-exchange-rate",
3
- "version": "1.3.8",
3
+ "version": "1.3.13",
4
4
  "description": "Official Central Bank of Myanmar (Myanmar) daily exchange rates — 38 currencies vs MMK, history since 2012. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "cbm",
7
+ "central-bank-of-myanmar",
7
8
  "central",
8
9
  "bank",
9
- "of",
10
10
  "myanmar",
11
11
  "exchange-rate",
12
12
  "exchange-rates",
13
+ "exchangerate",
14
+ "exchange rate",
15
+ "mmk-exchange-rate",
13
16
  "currency",
14
17
  "forex",
15
18
  "fx",
16
19
  "mmk",
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
- "myanmar",
20
28
  "api",
21
29
  "typescript"
22
30
  ],