bmu-exchange-rate 1.3.27 โ†’ 1.3.30

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 +57 -24
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,16 +4,16 @@
4
4
  [![license](https://img.shields.io/npm/l/bmu-exchange-rate.svg)](https://github.com/AllRates-Today/bmu-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/bmu-exchange-rate)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)
7
- [![USD/MUR today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fbmu%3Fsource%3DUSD%26target%3DMUR&query=%24.rate&label=USD%2FMUR%20published%20by%20Bank%20of%20Mauritius&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/bmu/)
7
+ [![USD/MUR today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fbmu%3Fsource%3DUSD%26target%3DMUR&query=%24.rate&label=USD%2FMUR%20official%2C%20Bank%20of%20Mauritius&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/bmu/)
8
8
  [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fbmu%3Fsource%3DUSD%26target%3DMUR&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/bmu/)
9
9
 
10
10
  **Official Bank of Mauritius (Mauritius) 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 Bank of Mauritius itself prints, every business day.**
11
11
 
12
12
  ## ๐Ÿš€ Why this client?
13
13
 
14
- - ๐Ÿ›๏ธ **Official published rates** โ€” Bank of Mauritius's own table, with the publisher's own `rate_date` on every response
14
+ - ๐Ÿ›๏ธ **Official rates** โ€” Bank of Mauritius's own table, with the publisher's own `rate_date` on every response
15
15
  - ๐Ÿ“… **History from 2026** โ€” this source publishes only its current table, so the archive builds forward from the day we started collecting
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,14 +24,46 @@
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 Bank of Mauritius table](https://allratestoday.com/api/open/central-bank/bmu/table.svg)](https://allratestoday.com/central-bank-rates-api/bmu/)
30
30
 
31
31
  The image is rendered live from the keyless endpoint, so it follows the central bank's publications on npm and on GitHub alike without a new release. The same table as text is folded below 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.
32
32
 
33
33
  <!-- daily-table:start -->
34
- _The table is filled in by the daily workflow._
34
+ <details>
35
+ <summary>Table as text: published 2026-11-11 by Bank of Mauritius โ€” 24 rates. Updated 2026-11-11.</summary>
36
+
37
+ | Base | Quote | Type | Rate |
38
+ | --- | --- | --- | ---: |
39
+ | AUD | MUR | tt_buy | 32.4657 |
40
+ | AUD | MUR | tt_sell | 34.2409 |
41
+ | CAD | MUR | tt_buy | 32.9369 |
42
+ | CAD | MUR | tt_sell | 34.8311 |
43
+ | CHF | MUR | tt_buy | 56.2643 |
44
+ | CHF | MUR | tt_sell | 57.9455 |
45
+ | CNY | MUR | tt_buy | 7.0276 |
46
+ | CNY | MUR | tt_sell | 7.6045 |
47
+ | EUR | MUR | tt_buy | 51.8817 |
48
+ | EUR | MUR | tt_sell | 53.4366 |
49
+ | GBP | MUR | tt_buy | 62.0344 |
50
+ | GBP | MUR | tt_sell | 63.8925 |
51
+ | INR | MUR | tt_buy | 0.5037 |
52
+ | INR | MUR | tt_sell | 0.5368 |
53
+ | JPY | MUR | tt_buy | 0.292716 |
54
+ | JPY | MUR | tt_sell | 0.301466 |
55
+ | NZD | MUR | tt_buy | 26.2322 |
56
+ | NZD | MUR | tt_sell | 27.605 |
57
+ | SGD | MUR | tt_buy | 36.4493 |
58
+ | SGD | MUR | tt_sell | 38.3149 |
59
+ | USD | MUR | tt_buy | 46.4693 |
60
+ | USD | MUR | tt_sell | 47.8667 |
61
+ | ZAR | MUR | tt_buy | 2.8518 |
62
+ | ZAR | MUR | tt_sell | 3.0489 |
63
+
64
+ </details>
65
+
66
+ Source: [Official rates published by BMU, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/bmu/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
35
67
  <!-- daily-table:end -->
36
68
 
37
69
  ## ๐Ÿ“ฆ Installation
@@ -61,8 +93,8 @@ console.log(pair.rate, pair.rate_date); // the official Bank of Mauritius rate,
61
93
 
62
94
  ## ๐Ÿ“š API reference
63
95
 
64
- - [Latest pair rate](#latest-pair-rate) โ€” one pair from the latest published table
65
- - [Full published table](#full-published-table) โ€” everything the central bank printed, in one call
96
+ - [Latest pair rate](#latest-pair-rate) โ€” one pair from the latest official table
97
+ - [Full official table](#full-official-table) โ€” everything the central bank printed, in one call
66
98
  - [Table for a date](#table-for-a-date) โ€” the official table for an invoice or filing date
67
99
  - [Daily time series](#daily-time-series) โ€” one pair across a date range
68
100
 
@@ -70,7 +102,7 @@ console.log(pair.rate, pair.rate_date); // the official Bank of Mauritius rate,
70
102
 
71
103
  ### Latest pair rate
72
104
 
73
- 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).
105
+ 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).
74
106
 
75
107
  ```js
76
108
  const pair = await getRate('USD', 'MUR', { apiKey: 'art_live_...' });
@@ -82,10 +114,10 @@ const pair = await getRate('USD', 'MUR', { apiKey: 'art_live_...' });
82
114
  {
83
115
  bank: 'bmu',
84
116
  name: 'Bank of Mauritius',
85
- rate_date: '2026-10-14', // Bank of Mauritius's own publication date
117
+ rate_date: '2026-11-11', // Bank of Mauritius's own publication date
86
118
  source: 'USD',
87
119
  target: 'MUR',
88
- rate: 46.9053,
120
+ rate: 46.4693,
89
121
  rate_type: 'tt_buy',
90
122
  derived: false,
91
123
  method: 'published',
@@ -93,7 +125,7 @@ const pair = await getRate('USD', 'MUR', { apiKey: 'art_live_...' });
93
125
  }
94
126
  ```
95
127
 
96
- ### Full published table
128
+ ### Full official table
97
129
 
98
130
  Free plan and up. The complete table for the latest publication date.
99
131
 
@@ -110,11 +142,11 @@ console.log(table.rate_date, table.rates.length);
110
142
  {
111
143
  bank: 'bmu',
112
144
  name: 'Bank of Mauritius',
113
- rate_date: '2026-10-14',
145
+ rate_date: '2026-11-11',
114
146
  rates: [
115
- { "base": "USD", "quote": "MUR", "type": "tt_buy", "value": 46.9053 },
116
- { "base": "USD", "quote": "MUR", "type": "tt_sell", "value": 48.3088 },
117
- // โ€ฆ the rest of the published table (12 currencies vs MUR)
147
+ { "base": "USD", "quote": "MUR", "type": "tt_buy", "value": 46.4693 },
148
+ { "base": "USD", "quote": "MUR", "type": "tt_sell", "value": 47.8667 },
149
+ // โ€ฆ the rest of the official table (12 currencies vs MUR)
118
150
  ],
119
151
  disclaimer: 'โ€ฆ'
120
152
  }
@@ -153,7 +185,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
153
185
  import { getHistory } from 'bmu-exchange-rate';
154
186
 
155
187
  const series = await getHistory(
156
- { source: 'USD', target: 'MUR', from: '2026-01-01', to: '2026-10-14' },
188
+ { source: 'USD', target: 'MUR', from: '2026-01-01', to: '2026-11-11' },
157
189
  { apiKey: 'art_live_...' }
158
190
  );
159
191
  ```
@@ -166,11 +198,11 @@ const series = await getHistory(
166
198
  source: 'USD',
167
199
  target: 'MUR',
168
200
  from: '2026-01-01',
169
- to: '2026-10-14',
201
+ to: '2026-11-11',
170
202
  count: 152,
171
203
  rates: [
172
204
  // one entry per publication date
173
- { date: '2026-10-14', rate: 46.9053, rate_type: 'tt_buy', derived: false, method: 'published' },
205
+ { date: '2026-11-11', rate: 46.4693, rate_type: 'tt_buy', derived: false, method: 'published' },
174
206
  // โ€ฆ
175
207
  ],
176
208
  disclaimer: 'โ€ฆ'
@@ -224,7 +256,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bmu/latest?format=xml&api_ke
224
256
  - 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`
225
257
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
226
258
 
227
- ## โš–๏ธ Published vs derived rates
259
+ ## โš–๏ธ Official vs derived rates
228
260
 
229
261
  If Bank of Mauritius 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:
230
262
 
@@ -274,21 +306,21 @@ getRate('USD', 'MUR', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
274
306
 
275
307
  ## ๐Ÿ’ก Quota tips
276
308
 
277
- - Rates change once per business day โ€” cache the published table locally and a small monthly quota goes a long way.
309
+ - Rates change once per business day โ€” cache the official table locally and a small monthly quota goes a long way.
278
310
  - Every request counts toward your AllRatesToday quota, shared across all AllRatesToday endpoints on your key.
279
311
 
280
312
  ## ๐Ÿ“– Methods reference
281
313
 
282
314
  | Method | Plan | Description |
283
315
  | ------ | ---- | ----------- |
284
- | `getRate(source, target, { apiKey })` | Free | Latest rate for one pair, resolved from the published table |
285
- | `getLatestRates({ apiKey })` | Free | The central bank's full latest published table |
316
+ | `getRate(source, target, { apiKey })` | Free | Latest rate for one pair, resolved from the official table |
317
+ | `getLatestRates({ apiKey })` | Free | The central bank's full latest official table |
286
318
  | `getRatesForDate(date, { apiKey, source?, target? })` | Paid | The official table (or one pair) for a YYYY-MM-DD date |
287
319
  | `getHistory({ symbol \| source+target, from?, to? }, { apiKey })` | Paid | Daily series since 2026 |
288
320
 
289
321
  ## ๐Ÿ“ฅ Bulk data (no key)
290
322
 
291
- Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
323
+ Need the whole archive rather than an API call? The same official tables are mirrored daily as open data:
292
324
 
293
325
  - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) โ€” one CSV per institution (`rates/bmu.csv`)
294
326
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
@@ -298,7 +330,7 @@ Need the whole archive rather than an API call? The same published tables are mi
298
330
 
299
331
  - **Website:** [allratestoday.com](https://allratestoday.com)
300
332
  - [Bank of Mauritius rates page](https://allratestoday.com/central-bank-rates-api/bmu/) โ€” live table, publication cadence, FAQ
301
- - [All central bank sources](https://allratestoday.com/central-bank-rates-api/)
333
+ - [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
302
334
  - [Download central bank rates](https://allratestoday.com/download-central-bank-rates/) โ€” every bank's latest table and history as Excel, CSV or JSON
303
335
  - [Package docs on the site](https://allratestoday.com/docs/sdk/bmu-exchange-rate/) ยท [ERP integration guides](https://allratestoday.com/docs/integrations/)
304
336
  - [API documentation](https://allratestoday.com/docs/#central-bank) ยท [Interactive reference](https://allratestoday.com/api-reference/) ยท [Methodology](https://allratestoday.com/official-rates-methodology/)
@@ -306,6 +338,7 @@ Need the whole archive rather than an API call? The same published tables are mi
306
338
  - [Status](https://allratestoday.com/status)
307
339
  - [Postman collection](https://allratestoday.com/postman/)
308
340
  - [ChatGPT app](https://chatgpt.com/plugins/plugin_asdk_app_6ae1e76098f48191a285ac3f5ab7a83b) โ€” ask ChatGPT for live and official central bank rates
341
+ - [OpenAPI reference on Bump.sh](https://bump.sh/allratestoday/doc/allratestoday-api) โ€” also on [SwaggerHub](https://app.swaggerhub.com/apis-docs/allratestoday/allratestoday-exchange-rate-central-bank-rates-api/2.2.0)
309
342
  - [GitHub](https://github.com/AllRates-Today/bmu-exchange-rate)
310
343
 
311
344
  ## ๐Ÿ“œ License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bmu-exchange-rate",
3
- "version": "1.3.27",
3
+ "version": "1.3.30",
4
4
  "description": "Official Bank of Mauritius (Mauritius) daily exchange rates โ€” 12 currencies vs MUR, current table, archive from 2026. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "bmu",