cbm-exchange-rate 1.3.7 → 1.3.8
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 +40 -39
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,48 +40,48 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
|
|
|
40
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
41
|
|
|
42
42
|
<!-- daily-table:start -->
|
|
43
|
-
Published **2026-10-
|
|
43
|
+
Published **2026-10-12** by Central Bank of Myanmar — 38 rates. Updated 2026-10-12.
|
|
44
44
|
|
|
45
45
|
| Base | Quote | Type | Rate |
|
|
46
46
|
| --- | --- | --- | ---: |
|
|
47
|
-
| AUD | MMK | reference |
|
|
48
|
-
| BDT | MMK | reference | 17.
|
|
49
|
-
| BND | MMK | reference |
|
|
50
|
-
| BRL | MMK | reference |
|
|
51
|
-
| CAD | MMK | reference |
|
|
52
|
-
| CHF | MMK | reference |
|
|
53
|
-
| CNY | MMK | reference | 313.
|
|
54
|
-
| CZK | MMK | reference | 96.
|
|
55
|
-
| DKK | MMK | reference | 314.
|
|
56
|
-
| EGP | MMK | reference |
|
|
57
|
-
| EUR | MMK | reference |
|
|
58
|
-
| GBP | MMK | reference |
|
|
59
|
-
| HKD | MMK | reference | 267.
|
|
60
|
-
| IDR | MMK | reference | 0.
|
|
61
|
-
| ILS | MMK | reference |
|
|
62
|
-
| INR | MMK | reference | 21.
|
|
63
|
-
| JPY | MMK | reference | 13.
|
|
64
|
-
| KES | MMK | reference | 16.
|
|
65
|
-
| KHR | MMK | reference | 0.
|
|
66
|
-
| KRW | MMK | reference | 1.
|
|
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
67
|
| KWD | MMK | reference | 6814.86 |
|
|
68
68
|
| LAK | MMK | reference | 0.0934 |
|
|
69
69
|
| LKR | MMK | reference | 6.35 |
|
|
70
|
-
| MYR | MMK | reference |
|
|
71
|
-
| NOK | MMK | reference | 219.
|
|
72
|
-
| NPR | MMK | reference | 13.
|
|
73
|
-
| NZD | MMK | reference |
|
|
74
|
-
| PHP | MMK | reference | 33.
|
|
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 |
|
|
75
75
|
| PKR | MMK | reference | 7.58 |
|
|
76
|
-
| RSD | MMK | reference | 20.
|
|
77
|
-
| RUB | MMK | reference | 24.
|
|
78
|
-
| SAR | MMK | reference | 559.
|
|
79
|
-
| SEK | MMK | reference |
|
|
80
|
-
| SGD | MMK | reference |
|
|
81
|
-
| THB | MMK | reference | 62.
|
|
76
|
+
| RSD | MMK | reference | 20.04 |
|
|
77
|
+
| RUB | MMK | reference | 24.99 |
|
|
78
|
+
| SAR | MMK | reference | 559.15 |
|
|
79
|
+
| SEK | MMK | reference | 210.01 |
|
|
80
|
+
| SGD | MMK | reference | 1640.82 |
|
|
81
|
+
| THB | MMK | reference | 62.57 |
|
|
82
82
|
| USD | MMK | reference | 2100 |
|
|
83
|
-
| VND | MMK | reference | 0.
|
|
84
|
-
| ZAR | MMK | reference |
|
|
83
|
+
| VND | MMK | reference | 0.0811 |
|
|
84
|
+
| ZAR | MMK | reference | 127.28 |
|
|
85
85
|
|
|
86
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
87
|
<!-- daily-table:end -->
|
|
@@ -138,7 +138,7 @@ const pair = await getRate('USD', 'MMK', { apiKey: 'art_live_...' });
|
|
|
138
138
|
{
|
|
139
139
|
bank: 'cbm',
|
|
140
140
|
name: 'Central Bank of Myanmar',
|
|
141
|
-
rate_date: '2026-10-
|
|
141
|
+
rate_date: '2026-10-12', // Central Bank of Myanmar's own publication date
|
|
142
142
|
source: 'USD',
|
|
143
143
|
target: 'MMK',
|
|
144
144
|
rate: 2100,
|
|
@@ -166,7 +166,7 @@ console.log(table.rate_date, table.rates.length);
|
|
|
166
166
|
{
|
|
167
167
|
bank: 'cbm',
|
|
168
168
|
name: 'Central Bank of Myanmar',
|
|
169
|
-
rate_date: '2026-10-
|
|
169
|
+
rate_date: '2026-10-12',
|
|
170
170
|
rates: [
|
|
171
171
|
{ "base": "USD", "quote": "MMK", "type": "reference", "value": 2100 },
|
|
172
172
|
// … the rest of the published table (38 currencies vs MMK)
|
|
@@ -208,7 +208,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
208
208
|
import { getHistory } from 'cbm-exchange-rate';
|
|
209
209
|
|
|
210
210
|
const series = await getHistory(
|
|
211
|
-
{ source: 'USD', target: 'MMK', from: '2026-01-01', to: '2026-10-
|
|
211
|
+
{ source: 'USD', target: 'MMK', from: '2026-01-01', to: '2026-10-12' },
|
|
212
212
|
{ apiKey: 'art_live_...' }
|
|
213
213
|
);
|
|
214
214
|
```
|
|
@@ -221,11 +221,11 @@ const series = await getHistory(
|
|
|
221
221
|
source: 'USD',
|
|
222
222
|
target: 'MMK',
|
|
223
223
|
from: '2026-01-01',
|
|
224
|
-
to: '2026-10-
|
|
224
|
+
to: '2026-10-12',
|
|
225
225
|
count: 152,
|
|
226
226
|
rates: [
|
|
227
227
|
// one entry per publication date
|
|
228
|
-
{ date: '2026-10-
|
|
228
|
+
{ date: '2026-10-12', rate: 2100, rate_type: 'reference', derived: false, method: 'published' },
|
|
229
229
|
// …
|
|
230
230
|
],
|
|
231
231
|
disclaimer: '…'
|
|
@@ -275,6 +275,7 @@ curl "https://allratestoday.com/api/v1/central-bank/cbm/latest?format=xml&api_ke
|
|
|
275
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
|
|
276
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
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
|
|
278
|
+
- 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
279
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
279
280
|
|
|
280
281
|
## ⚖️ 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.8",
|
|
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",
|