cbm-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.
- package/README.md +59 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
[](https://github.com/AllRates-Today/cbm-exchange-rate/blob/main/LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/cbm-exchange-rate)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](https://allratestoday.com/central-bank-rates-api/cbm/)
|
|
8
|
+
[](https://allratestoday.com/central-bank-rates-api/cbm/)
|
|
7
9
|
|
|
8
10
|
**Official Central Bank of Myanmar (Myanmar) 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 Myanmar 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 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.
|
|
41
|
+
|
|
42
|
+
<!-- daily-table:start -->
|
|
43
|
+
Published **2026-10-08** by Central Bank of Myanmar โ 38 rates. Updated 2026-10-08.
|
|
44
|
+
|
|
45
|
+
| Base | Quote | Type | Rate |
|
|
46
|
+
| --- | --- | --- | ---: |
|
|
47
|
+
| AUD | MMK | reference | 1460.55 |
|
|
48
|
+
| BDT | MMK | reference | 17.03 |
|
|
49
|
+
| BND | MMK | reference | 1638.64 |
|
|
50
|
+
| BRL | MMK | reference | 418.21 |
|
|
51
|
+
| CAD | MMK | reference | 1472.91 |
|
|
52
|
+
| CHF | MMK | reference | 2518.59 |
|
|
53
|
+
| CNY | MMK | reference | 313.37 |
|
|
54
|
+
| CZK | MMK | reference | 96.28 |
|
|
55
|
+
| DKK | MMK | reference | 314.42 |
|
|
56
|
+
| EGP | MMK | reference | 40.1 |
|
|
57
|
+
| EUR | MMK | reference | 2350.01 |
|
|
58
|
+
| GBP | MMK | reference | 2771.37 |
|
|
59
|
+
| HKD | MMK | reference | 267.61 |
|
|
60
|
+
| IDR | MMK | reference | 0.1174 |
|
|
61
|
+
| ILS | MMK | reference | 683.26 |
|
|
62
|
+
| INR | MMK | reference | 21.7 |
|
|
63
|
+
| JPY | MMK | reference | 13.2714 |
|
|
64
|
+
| KES | MMK | reference | 16.17 |
|
|
65
|
+
| KHR | MMK | reference | 0.516 |
|
|
66
|
+
| KRW | MMK | reference | 1.5637 |
|
|
67
|
+
| KWD | MMK | reference | 6814.86 |
|
|
68
|
+
| LAK | MMK | reference | 0.0934 |
|
|
69
|
+
| LKR | MMK | reference | 6.35 |
|
|
70
|
+
| MYR | MMK | reference | 513.45 |
|
|
71
|
+
| NOK | MMK | reference | 219.57 |
|
|
72
|
+
| NPR | MMK | reference | 13.56 |
|
|
73
|
+
| NZD | MMK | reference | 1174.64 |
|
|
74
|
+
| PHP | MMK | reference | 33.36 |
|
|
75
|
+
| PKR | MMK | reference | 7.58 |
|
|
76
|
+
| RSD | MMK | reference | 20.02 |
|
|
77
|
+
| RUB | MMK | reference | 24.52 |
|
|
78
|
+
| SAR | MMK | reference | 559.37 |
|
|
79
|
+
| SEK | MMK | reference | 209.92 |
|
|
80
|
+
| SGD | MMK | reference | 1638.64 |
|
|
81
|
+
| THB | MMK | reference | 62.38 |
|
|
82
|
+
| USD | MMK | reference | 2100 |
|
|
83
|
+
| VND | MMK | reference | 0.081 |
|
|
84
|
+
| ZAR | MMK | reference | 126.11 |
|
|
85
|
+
|
|
86
|
+
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
|
+
<!-- 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', 'MMK', { apiKey: 'art_live_...' });
|
|
|
85
138
|
{
|
|
86
139
|
bank: 'cbm',
|
|
87
140
|
name: 'Central Bank of Myanmar',
|
|
88
|
-
rate_date: '2026-10-
|
|
141
|
+
rate_date: '2026-10-08', // Central Bank of Myanmar's own publication date
|
|
89
142
|
source: 'USD',
|
|
90
143
|
target: 'MMK',
|
|
91
144
|
rate: 2100,
|
|
@@ -113,7 +166,7 @@ console.log(table.rate_date, table.rates.length);
|
|
|
113
166
|
{
|
|
114
167
|
bank: 'cbm',
|
|
115
168
|
name: 'Central Bank of Myanmar',
|
|
116
|
-
rate_date: '2026-10-
|
|
169
|
+
rate_date: '2026-10-08',
|
|
117
170
|
rates: [
|
|
118
171
|
{ "base": "USD", "quote": "MMK", "type": "reference", "value": 2100 },
|
|
119
172
|
// โฆ the rest of the published table (38 currencies vs MMK)
|
|
@@ -155,7 +208,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
155
208
|
import { getHistory } from 'cbm-exchange-rate';
|
|
156
209
|
|
|
157
210
|
const series = await getHistory(
|
|
158
|
-
{ source: 'USD', target: 'MMK', from: '2026-01-01', to: '2026-10-
|
|
211
|
+
{ source: 'USD', target: 'MMK', 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: 'MMK',
|
|
170
223
|
from: '2026-01-01',
|
|
171
|
-
to: '2026-10-
|
|
224
|
+
to: '2026-10-08',
|
|
172
225
|
count: 152,
|
|
173
226
|
rates: [
|
|
174
227
|
// one entry per publication date
|
|
175
|
-
{ date: '2026-10-
|
|
228
|
+
{ date: '2026-10-08', rate: 2100, 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/cbm/latest?format=xml&api_ke
|
|
|
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('cbm')` 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 cbm ...` 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": "cbm-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
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",
|