bmu-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.
- package/README.md +49 -48
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
[](https://github.com/AllRates-Today/bmu-exchange-rate/blob/main/LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/bmu-exchange-rate)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
|
-
[](https://allratestoday.com/central-bank-rates-api/bmu/)
|
|
8
8
|
[](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
|
|
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
|
-
- ๐ **
|
|
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
|
|
27
|
+
## ๐ Latest official table
|
|
28
28
|
|
|
29
29
|
[](https://allratestoday.com/central-bank-rates-api/bmu/)
|
|
30
30
|
|
|
@@ -32,34 +32,34 @@ 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-
|
|
35
|
+
<summary>Table as text: published 2026-11-13 by Bank of Mauritius โ 24 rates. Updated 2026-11-15.</summary>
|
|
36
36
|
|
|
37
37
|
| Base | Quote | Type | Rate |
|
|
38
38
|
| --- | --- | --- | ---: |
|
|
39
|
-
| AUD | MUR | tt_buy | 32.
|
|
40
|
-
| AUD | MUR | tt_sell | 34.
|
|
41
|
-
| CAD | MUR | tt_buy | 33.
|
|
42
|
-
| CAD | MUR | tt_sell | 35.
|
|
43
|
-
| CHF | MUR | tt_buy | 56.
|
|
44
|
-
| CHF | MUR | tt_sell |
|
|
45
|
-
| CNY | MUR | tt_buy | 7.
|
|
46
|
-
| CNY | MUR | tt_sell | 7.
|
|
47
|
-
| EUR | MUR | tt_buy | 51.
|
|
48
|
-
| EUR | MUR | tt_sell | 53.
|
|
49
|
-
| GBP | MUR | tt_buy | 62.
|
|
50
|
-
| GBP | MUR | tt_sell |
|
|
51
|
-
| INR | MUR | tt_buy | 0.
|
|
52
|
-
| INR | MUR | tt_sell | 0.
|
|
53
|
-
| JPY | MUR | tt_buy | 0.
|
|
54
|
-
| JPY | MUR | tt_sell | 0.
|
|
55
|
-
| NZD | MUR | tt_buy |
|
|
56
|
-
| NZD | MUR | tt_sell | 27.
|
|
57
|
-
| SGD | MUR | tt_buy | 36.
|
|
58
|
-
| SGD | MUR | tt_sell | 38.
|
|
59
|
-
| USD | MUR | tt_buy | 46.
|
|
60
|
-
| USD | MUR | tt_sell |
|
|
61
|
-
| ZAR | MUR | tt_buy | 2.
|
|
62
|
-
| ZAR | MUR | tt_sell | 3.
|
|
39
|
+
| AUD | MUR | tt_buy | 32.4138 |
|
|
40
|
+
| AUD | MUR | tt_sell | 34.1873 |
|
|
41
|
+
| CAD | MUR | tt_buy | 33.1061 |
|
|
42
|
+
| CAD | MUR | tt_sell | 35.0076 |
|
|
43
|
+
| CHF | MUR | tt_buy | 56.1699 |
|
|
44
|
+
| CHF | MUR | tt_sell | 57.8474 |
|
|
45
|
+
| CNY | MUR | tt_buy | 7.0923 |
|
|
46
|
+
| CNY | MUR | tt_sell | 7.6655 |
|
|
47
|
+
| EUR | MUR | tt_buy | 51.8894 |
|
|
48
|
+
| EUR | MUR | tt_sell | 53.444 |
|
|
49
|
+
| GBP | MUR | tt_buy | 62.0884 |
|
|
50
|
+
| GBP | MUR | tt_sell | 63.9501 |
|
|
51
|
+
| INR | MUR | tt_buy | 0.5056 |
|
|
52
|
+
| INR | MUR | tt_sell | 0.5388 |
|
|
53
|
+
| JPY | MUR | tt_buy | 0.293431 |
|
|
54
|
+
| JPY | MUR | tt_sell | 0.302222 |
|
|
55
|
+
| NZD | MUR | tt_buy | 26.162 |
|
|
56
|
+
| NZD | MUR | tt_sell | 27.5315 |
|
|
57
|
+
| SGD | MUR | tt_buy | 36.6361 |
|
|
58
|
+
| SGD | MUR | tt_sell | 38.5086 |
|
|
59
|
+
| USD | MUR | tt_buy | 46.914 |
|
|
60
|
+
| USD | MUR | tt_sell | 48.3253 |
|
|
61
|
+
| ZAR | MUR | tt_buy | 2.8363 |
|
|
62
|
+
| ZAR | MUR | tt_sell | 3.0343 |
|
|
63
63
|
|
|
64
64
|
</details>
|
|
65
65
|
|
|
@@ -93,8 +93,8 @@ console.log(pair.rate, pair.rate_date); // the official Bank of Mauritius rate,
|
|
|
93
93
|
|
|
94
94
|
## ๐ API reference
|
|
95
95
|
|
|
96
|
-
- [Latest pair rate](#latest-pair-rate) โ one pair from the latest
|
|
97
|
-
- [Full
|
|
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
|
|
98
98
|
- [Table for a date](#table-for-a-date) โ the official table for an invoice or filing date
|
|
99
99
|
- [Daily time series](#daily-time-series) โ one pair across a date range
|
|
100
100
|
|
|
@@ -102,7 +102,7 @@ console.log(pair.rate, pair.rate_date); // the official Bank of Mauritius rate,
|
|
|
102
102
|
|
|
103
103
|
### Latest pair rate
|
|
104
104
|
|
|
105
|
-
Free plan and up. Pairs the central bank does not print directly are resolved from its table and flagged (see *
|
|
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).
|
|
106
106
|
|
|
107
107
|
```js
|
|
108
108
|
const pair = await getRate('USD', 'MUR', { apiKey: 'art_live_...' });
|
|
@@ -114,10 +114,10 @@ const pair = await getRate('USD', 'MUR', { apiKey: 'art_live_...' });
|
|
|
114
114
|
{
|
|
115
115
|
bank: 'bmu',
|
|
116
116
|
name: 'Bank of Mauritius',
|
|
117
|
-
rate_date: '2026-
|
|
117
|
+
rate_date: '2026-11-11', // Bank of Mauritius's own publication date
|
|
118
118
|
source: 'USD',
|
|
119
119
|
target: 'MUR',
|
|
120
|
-
rate: 46.
|
|
120
|
+
rate: 46.4693,
|
|
121
121
|
rate_type: 'tt_buy',
|
|
122
122
|
derived: false,
|
|
123
123
|
method: 'published',
|
|
@@ -125,7 +125,7 @@ const pair = await getRate('USD', 'MUR', { apiKey: 'art_live_...' });
|
|
|
125
125
|
}
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
-
### Full
|
|
128
|
+
### Full official table
|
|
129
129
|
|
|
130
130
|
Free plan and up. The complete table for the latest publication date.
|
|
131
131
|
|
|
@@ -142,11 +142,11 @@ console.log(table.rate_date, table.rates.length);
|
|
|
142
142
|
{
|
|
143
143
|
bank: 'bmu',
|
|
144
144
|
name: 'Bank of Mauritius',
|
|
145
|
-
rate_date: '2026-
|
|
145
|
+
rate_date: '2026-11-11',
|
|
146
146
|
rates: [
|
|
147
|
-
{ "base": "USD", "quote": "MUR", "type": "tt_buy", "value": 46.
|
|
148
|
-
{ "base": "USD", "quote": "MUR", "type": "tt_sell", "value":
|
|
149
|
-
// โฆ the rest of the
|
|
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)
|
|
150
150
|
],
|
|
151
151
|
disclaimer: 'โฆ'
|
|
152
152
|
}
|
|
@@ -185,7 +185,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
185
185
|
import { getHistory } from 'bmu-exchange-rate';
|
|
186
186
|
|
|
187
187
|
const series = await getHistory(
|
|
188
|
-
{ source: 'USD', target: 'MUR', from: '2026-01-01', to: '2026-
|
|
188
|
+
{ source: 'USD', target: 'MUR', from: '2026-01-01', to: '2026-11-11' },
|
|
189
189
|
{ apiKey: 'art_live_...' }
|
|
190
190
|
);
|
|
191
191
|
```
|
|
@@ -198,11 +198,11 @@ const series = await getHistory(
|
|
|
198
198
|
source: 'USD',
|
|
199
199
|
target: 'MUR',
|
|
200
200
|
from: '2026-01-01',
|
|
201
|
-
to: '2026-
|
|
201
|
+
to: '2026-11-11',
|
|
202
202
|
count: 152,
|
|
203
203
|
rates: [
|
|
204
204
|
// one entry per publication date
|
|
205
|
-
{ date: '2026-
|
|
205
|
+
{ date: '2026-11-11', rate: 46.4693, rate_type: 'tt_buy', derived: false, method: 'published' },
|
|
206
206
|
// โฆ
|
|
207
207
|
],
|
|
208
208
|
disclaimer: 'โฆ'
|
|
@@ -256,7 +256,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bmu/latest?format=xml&api_ke
|
|
|
256
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`
|
|
257
257
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
258
258
|
|
|
259
|
-
## โ๏ธ
|
|
259
|
+
## โ๏ธ Official vs derived rates
|
|
260
260
|
|
|
261
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:
|
|
262
262
|
|
|
@@ -306,21 +306,21 @@ getRate('USD', 'MUR', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
306
306
|
|
|
307
307
|
## ๐ก Quota tips
|
|
308
308
|
|
|
309
|
-
- Rates change once per business day โ cache the
|
|
309
|
+
- Rates change once per business day โ cache the official table locally and a small monthly quota goes a long way.
|
|
310
310
|
- Every request counts toward your AllRatesToday quota, shared across all AllRatesToday endpoints on your key.
|
|
311
311
|
|
|
312
312
|
## ๐ Methods reference
|
|
313
313
|
|
|
314
314
|
| Method | Plan | Description |
|
|
315
315
|
| ------ | ---- | ----------- |
|
|
316
|
-
| `getRate(source, target, { apiKey })` | Free | Latest rate for one pair, resolved from the
|
|
317
|
-
| `getLatestRates({ apiKey })` | Free | The central bank's full latest
|
|
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 |
|
|
318
318
|
| `getRatesForDate(date, { apiKey, source?, target? })` | Paid | The official table (or one pair) for a YYYY-MM-DD date |
|
|
319
319
|
| `getHistory({ symbol \| source+target, from?, to? }, { apiKey })` | Paid | Daily series since 2026 |
|
|
320
320
|
|
|
321
321
|
## ๐ฅ Bulk data (no key)
|
|
322
322
|
|
|
323
|
-
Need the whole archive rather than an API call? The same
|
|
323
|
+
Need the whole archive rather than an API call? The same official tables are mirrored daily as open data:
|
|
324
324
|
|
|
325
325
|
- Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) โ one CSV per institution (`rates/bmu.csv`)
|
|
326
326
|
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
@@ -330,8 +330,9 @@ Need the whole archive rather than an API call? The same published tables are mi
|
|
|
330
330
|
|
|
331
331
|
- **Website:** [allratestoday.com](https://allratestoday.com)
|
|
332
332
|
- [Bank of Mauritius rates page](https://allratestoday.com/central-bank-rates-api/bmu/) โ live table, publication cadence, FAQ
|
|
333
|
-
- [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
|
|
334
334
|
- [Download central bank rates](https://allratestoday.com/download-central-bank-rates/) โ every bank's latest table and history as Excel, CSV or JSON
|
|
335
|
+
- [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)
|
|
335
336
|
- [Package docs on the site](https://allratestoday.com/docs/sdk/bmu-exchange-rate/) ยท [ERP integration guides](https://allratestoday.com/docs/integrations/)
|
|
336
337
|
- [API documentation](https://allratestoday.com/docs/#central-bank) ยท [Interactive reference](https://allratestoday.com/api-reference/) ยท [Methodology](https://allratestoday.com/official-rates-methodology/)
|
|
337
338
|
- [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": "bmu-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.31",
|
|
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",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"mauritius",
|
|
10
10
|
"exchange-rate",
|
|
11
11
|
"exchange-rates",
|
|
12
|
+
"exchange-rate-api",
|
|
12
13
|
"exchangerate",
|
|
13
14
|
"exchange rate",
|
|
14
15
|
"exchange rates",
|