cbm-exchange-rate 1.3.29 โ†’ 1.3.31

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 +56 -55
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -4,16 +4,16 @@
4
4
  [![license](https://img.shields.io/npm/l/cbm-exchange-rate.svg)](https://github.com/AllRates-Today/cbm-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/cbm-exchange-rate)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)
7
- [![USD/MMK today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fcbm%3Fsource%3DUSD%26target%3DMMK&query=%24.rate&label=USD%2FMMK%20published%20by%20Central%20Bank%20of%20Myanmar&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/cbm/)
7
+ [![USD/MMK today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fcbm%3Fsource%3DUSD%26target%3DMMK&query=%24.rate&label=USD%2FMMK%20official%2C%20Central%20Bank%20of%20Myanmar&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/cbm/)
8
8
  [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fcbm%3Fsource%3DUSD%26target%3DMMK&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/cbm/)
9
9
 
10
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.**
11
11
 
12
12
  ## ๐Ÿš€ Why this client?
13
13
 
14
- - ๐Ÿ›๏ธ **Official published rates** โ€” Central Bank of Myanmar's own table, with the publisher's own `rate_date` on every response
14
+ - ๐Ÿ›๏ธ **Official rates** โ€” Central Bank of Myanmar's own table, with the publisher's own `rate_date` on every response
15
15
  - ๐Ÿ“… **History back to 2012** โ€” point-in-time tables and daily series for any past date
16
- - ๐Ÿ”€ **Published vs derived, always flagged** โ€” computed inverse/cross pairs carry `derived: true`, never mixed with official prints
16
+ - ๐Ÿ”€ **Official vs derived, always flagged** โ€” computed inverse/cross pairs carry `derived: true`, never mixed with official prints
17
17
  - โšก **Zero dependencies** โ€” pure ESM + CJS over global `fetch`; Node 18+, Bun, Deno, and edge runtimes
18
18
  - ๐Ÿ”ท **Type-safe** โ€” full TypeScript definitions shipped with the package
19
19
  - ๐Ÿงพ **Compliance-grade metadata** โ€” `rate_type`, publication date, and source disclaimer on every response
@@ -24,7 +24,7 @@
24
24
 
25
25
  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.
26
26
 
27
- ## ๐Ÿ“ˆ Latest published table
27
+ ## ๐Ÿ“ˆ Latest official table
28
28
 
29
29
  [![Latest Central Bank of Myanmar table](https://allratestoday.com/api/open/central-bank/cbm/table.svg)](https://allratestoday.com/central-bank-rates-api/cbm/)
30
30
 
@@ -32,48 +32,48 @@ The image is rendered live from the keyless endpoint, so it follows the central
32
32
 
33
33
  <!-- daily-table:start -->
34
34
  <details>
35
- <summary>Table as text: published 2026-11-06 by Central Bank of Myanmar โ€” 38 rates. Updated 2026-11-08.</summary>
35
+ <summary>Table as text: published 2026-11-13 by Central Bank of Myanmar โ€” 38 rates. Updated 2026-11-15.</summary>
36
36
 
37
37
  | Base | Quote | Type | Rate |
38
38
  | --- | --- | --- | ---: |
39
- | AUD | MMK | reference | 1445.12 |
40
- | BDT | MMK | reference | 16.86 |
41
- | BND | MMK | reference | 1639.47 |
42
- | BRL | MMK | reference | 381.54 |
43
- | CAD | MMK | reference | 1492.33 |
44
- | CHF | MMK | reference | 2565.04 |
39
+ | AUD | MMK | reference | 1426.95 |
40
+ | BDT | MMK | reference | 16.88 |
41
+ | BND | MMK | reference | 1631.32 |
42
+ | BRL | MMK | reference | 372.19 |
43
+ | CAD | MMK | reference | 1472.5 |
44
+ | CHF | MMK | reference | 2508.81 |
45
45
  | CNY | MMK | reference | 314.82 |
46
- | CZK | MMK | reference | 96.49 |
47
- | DKK | MMK | reference | 313.98 |
48
- | EGP | MMK | reference | 38.96 |
49
- | EUR | MMK | reference | 2346.86 |
50
- | GBP | MMK | reference | 2812.64 |
51
- | HKD | MMK | reference | 267.85 |
52
- | IDR | MMK | reference | 0.1161 |
53
- | ILS | MMK | reference | 657.38 |
54
- | INR | MMK | reference | 22.33 |
55
- | JPY | MMK | reference | 13.2769 |
56
- | KES | MMK | reference | 16.16 |
57
- | KHR | MMK | reference | 0.5154 |
58
- | KRW | MMK | reference | 1.5509 |
59
- | KWD | MMK | reference | 6821.5 |
46
+ | CZK | MMK | reference | 95.16 |
47
+ | DKK | MMK | reference | 310.59 |
48
+ | EGP | MMK | reference | 39.31 |
49
+ | EUR | MMK | reference | 2321.76 |
50
+ | GBP | MMK | reference | 2778.72 |
51
+ | HKD | MMK | reference | 267.66 |
52
+ | IDR | MMK | reference | 0.1154 |
53
+ | ILS | MMK | reference | 655.76 |
54
+ | INR | MMK | reference | 22.29 |
55
+ | JPY | MMK | reference | 13.1316 |
56
+ | KES | MMK | reference | 16.15 |
57
+ | KHR | MMK | reference | 0.5161 |
58
+ | KRW | MMK | reference | 1.5714 |
59
+ | KWD | MMK | reference | 6804.93 |
60
60
  | LAK | MMK | reference | 0.0933 |
61
- | LKR | MMK | reference | 6.32 |
62
- | MYR | MMK | reference | 517.56 |
63
- | NOK | MMK | reference | 223.58 |
64
- | NPR | MMK | reference | 13.96 |
65
- | NZD | MMK | reference | 1164.66 |
66
- | PHP | MMK | reference | 33.33 |
61
+ | LKR | MMK | reference | 6.31 |
62
+ | MYR | MMK | reference | 513.76 |
63
+ | NOK | MMK | reference | 219.71 |
64
+ | NPR | MMK | reference | 13.93 |
65
+ | NZD | MMK | reference | 1162.46 |
66
+ | PHP | MMK | reference | 32.94 |
67
67
  | PKR | MMK | reference | 7.59 |
68
- | RSD | MMK | reference | 19.95 |
69
- | RUB | MMK | reference | 25.61 |
70
- | SAR | MMK | reference | 559.48 |
71
- | SEK | MMK | reference | 212.62 |
72
- | SGD | MMK | reference | 1639.47 |
73
- | THB | MMK | reference | 62.6 |
68
+ | RSD | MMK | reference | 19.74 |
69
+ | RUB | MMK | reference | 25.55 |
70
+ | SAR | MMK | reference | 559.55 |
71
+ | SEK | MMK | reference | 209.2 |
72
+ | SGD | MMK | reference | 1631.26 |
73
+ | THB | MMK | reference | 61.96 |
74
74
  | USD | MMK | reference | 2100 |
75
- | VND | MMK | reference | 0.0821 |
76
- | ZAR | MMK | reference | 127.28 |
75
+ | VND | MMK | reference | 0.0816 |
76
+ | ZAR | MMK | reference | 124.65 |
77
77
 
78
78
  </details>
79
79
 
@@ -107,8 +107,8 @@ console.log(pair.rate, pair.rate_date); // the official Central Bank of Myanmar
107
107
 
108
108
  ## ๐Ÿ“š API reference
109
109
 
110
- - [Latest pair rate](#latest-pair-rate) โ€” one pair from the latest published table
111
- - [Full published table](#full-published-table) โ€” everything the central bank printed, in one call
110
+ - [Latest pair rate](#latest-pair-rate) โ€” one pair from the latest official table
111
+ - [Full official table](#full-official-table) โ€” everything the central bank printed, in one call
112
112
  - [Table for a date](#table-for-a-date) โ€” the official table for an invoice or filing date
113
113
  - [Daily time series](#daily-time-series) โ€” one pair across a date range
114
114
 
@@ -116,7 +116,7 @@ console.log(pair.rate, pair.rate_date); // the official Central Bank of Myanmar
116
116
 
117
117
  ### Latest pair rate
118
118
 
119
- Free plan and up. Pairs the central bank does not print directly are resolved from its table and flagged (see *Published vs derived rates* below).
119
+ Free plan and up. Pairs the central bank does not print directly are resolved from its table and flagged (see *Official vs derived rates* below).
120
120
 
121
121
  ```js
122
122
  const pair = await getRate('USD', 'MMK', { apiKey: 'art_live_...' });
@@ -128,7 +128,7 @@ const pair = await getRate('USD', 'MMK', { apiKey: 'art_live_...' });
128
128
  {
129
129
  bank: 'cbm',
130
130
  name: 'Central Bank of Myanmar',
131
- rate_date: '2026-10-13', // Central Bank of Myanmar's own publication date
131
+ rate_date: '2026-11-11', // Central Bank of Myanmar's own publication date
132
132
  source: 'USD',
133
133
  target: 'MMK',
134
134
  rate: 2100,
@@ -139,7 +139,7 @@ const pair = await getRate('USD', 'MMK', { apiKey: 'art_live_...' });
139
139
  }
140
140
  ```
141
141
 
142
- ### Full published table
142
+ ### Full official table
143
143
 
144
144
  Free plan and up. The complete table for the latest publication date.
145
145
 
@@ -156,10 +156,10 @@ console.log(table.rate_date, table.rates.length);
156
156
  {
157
157
  bank: 'cbm',
158
158
  name: 'Central Bank of Myanmar',
159
- rate_date: '2026-10-13',
159
+ rate_date: '2026-11-11',
160
160
  rates: [
161
161
  { "base": "USD", "quote": "MMK", "type": "reference", "value": 2100 },
162
- // โ€ฆ the rest of the published table (38 currencies vs MMK)
162
+ // โ€ฆ the rest of the official table (38 currencies vs MMK)
163
163
  ],
164
164
  disclaimer: 'โ€ฆ'
165
165
  }
@@ -198,7 +198,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
198
198
  import { getHistory } from 'cbm-exchange-rate';
199
199
 
200
200
  const series = await getHistory(
201
- { source: 'USD', target: 'MMK', from: '2026-01-01', to: '2026-10-13' },
201
+ { source: 'USD', target: 'MMK', from: '2026-01-01', to: '2026-11-11' },
202
202
  { apiKey: 'art_live_...' }
203
203
  );
204
204
  ```
@@ -211,11 +211,11 @@ const series = await getHistory(
211
211
  source: 'USD',
212
212
  target: 'MMK',
213
213
  from: '2026-01-01',
214
- to: '2026-10-13',
214
+ to: '2026-11-11',
215
215
  count: 152,
216
216
  rates: [
217
217
  // one entry per publication date
218
- { date: '2026-10-13', rate: 2100, rate_type: 'reference', derived: false, method: 'published' },
218
+ { date: '2026-11-11', rate: 2100, rate_type: 'reference', derived: false, method: 'published' },
219
219
  // โ€ฆ
220
220
  ],
221
221
  disclaimer: 'โ€ฆ'
@@ -269,7 +269,7 @@ curl "https://allratestoday.com/api/v1/central-bank/cbm/latest?format=xml&api_ke
269
269
  - Evaluating? 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 that covers the free-plan methods (latest table, pairs); dated tables and history need a [paid plan](https://allratestoday.com/pricing/). The MCP servers expose it as `request_trial_key`
270
270
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
271
271
 
272
- ## โš–๏ธ Published vs derived rates
272
+ ## โš–๏ธ Official vs derived rates
273
273
 
274
274
  If Central Bank of Myanmar does not print a pair directly, the API resolves it from the central bank's own table and says so โ€” official and computed values are never confused:
275
275
 
@@ -319,21 +319,21 @@ getRate('USD', 'MMK', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
319
319
 
320
320
  ## ๐Ÿ’ก Quota tips
321
321
 
322
- - Rates change once per business day โ€” cache the published table locally and a small monthly quota goes a long way.
322
+ - Rates change once per business day โ€” cache the official table locally and a small monthly quota goes a long way.
323
323
  - Every request counts toward your AllRatesToday quota, shared across all AllRatesToday endpoints on your key.
324
324
 
325
325
  ## ๐Ÿ“– Methods reference
326
326
 
327
327
  | Method | Plan | Description |
328
328
  | ------ | ---- | ----------- |
329
- | `getRate(source, target, { apiKey })` | Free | Latest rate for one pair, resolved from the published table |
330
- | `getLatestRates({ apiKey })` | Free | The central bank's full latest published table |
329
+ | `getRate(source, target, { apiKey })` | Free | Latest rate for one pair, resolved from the official table |
330
+ | `getLatestRates({ apiKey })` | Free | The central bank's full latest official table |
331
331
  | `getRatesForDate(date, { apiKey, source?, target? })` | Paid | The official table (or one pair) for a YYYY-MM-DD date |
332
332
  | `getHistory({ symbol \| source+target, from?, to? }, { apiKey })` | Paid | Daily series since 2012 |
333
333
 
334
334
  ## ๐Ÿ“ฅ Bulk data (no key)
335
335
 
336
- Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
336
+ Need the whole archive rather than an API call? The same official tables are mirrored daily as open data:
337
337
 
338
338
  - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) โ€” one CSV per institution (`rates/cbm.csv`)
339
339
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
@@ -343,8 +343,9 @@ Need the whole archive rather than an API call? The same published tables are mi
343
343
 
344
344
  - **Website:** [allratestoday.com](https://allratestoday.com)
345
345
  - [Central Bank of Myanmar rates page](https://allratestoday.com/central-bank-rates-api/cbm/) โ€” live table, publication cadence, FAQ
346
- - [All central bank sources](https://allratestoday.com/central-bank-rates-api/)
346
+ - [All central bank sources](https://allratestoday.com/central-bank-rates-api/) ยท [Full list of 130+ central banks and tax authorities](https://allratestoday.com/central-bank-rates-api/institutions/) โ€” one API, the same response shape for every source
347
347
  - [Download central bank rates](https://allratestoday.com/download-central-bank-rates/) โ€” every bank's latest table and history as Excel, CSV or JSON
348
+ - [Bank Exchange Rate API](https://allratestoday.com/bank-exchange-rate-api/) โ€” live buy and sell rates from 1,200+ commercial banks in 120+ countries ยท [npm](https://www.npmjs.com/package/bank-exchange-rates) ยท [GitHub](https://github.com/AllRates-Today/bank-exchange-rates)
348
349
  - [Package docs on the site](https://allratestoday.com/docs/sdk/cbm-exchange-rate/) ยท [ERP integration guides](https://allratestoday.com/docs/integrations/)
349
350
  - [API documentation](https://allratestoday.com/docs/#central-bank) ยท [Interactive reference](https://allratestoday.com/api-reference/) ยท [Methodology](https://allratestoday.com/official-rates-methodology/)
350
351
  - [Register (Free)](https://allratestoday.com/register) ยท [Dashboard](https://allratestoday.com/profile) ยท [Pricing](https://allratestoday.com/pricing/)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cbm-exchange-rate",
3
- "version": "1.3.29",
3
+ "version": "1.3.31",
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",
@@ -10,6 +10,7 @@
10
10
  "myanmar",
11
11
  "exchange-rate",
12
12
  "exchange-rates",
13
+ "exchange-rate-api",
13
14
  "exchangerate",
14
15
  "exchange rate",
15
16
  "exchange rates",