@allratestoday/bmu-exchange-rate 1.3.6 โ 1.3.9
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 +50 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
[](https://github.com/AllRates-Today/bmu-exchange-rate/blob/main/LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/@allratestoday/bmu-exchange-rate)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](https://allratestoday.com/central-bank-rates-api/bmu/)
|
|
8
|
+
[](https://allratestoday.com/central-bank-rates-api/bmu/)
|
|
7
9
|
|
|
8
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.**
|
|
9
11
|
|
|
@@ -33,6 +35,45 @@ 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
|
+
[](https://allratestoday.com/central-bank-rates-api/bmu/)
|
|
41
|
+
|
|
42
|
+
The image is rendered live from the keyless endpoint above, so it follows the central bank's publications on npm and on GitHub alike without a new release. The text copy below is there 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.
|
|
43
|
+
|
|
44
|
+
<!-- daily-table:start -->
|
|
45
|
+
Published **2026-10-12** by Bank of Mauritius โ 24 rates. Updated 2026-10-12.
|
|
46
|
+
|
|
47
|
+
| Base | Quote | Type | Rate |
|
|
48
|
+
| --- | --- | --- | ---: |
|
|
49
|
+
| AUD | MUR | tt_buy | 33.2144 |
|
|
50
|
+
| AUD | MUR | tt_sell | 35.0206 |
|
|
51
|
+
| CAD | MUR | tt_buy | 33.0803 |
|
|
52
|
+
| CAD | MUR | tt_sell | 34.9804 |
|
|
53
|
+
| CHF | MUR | tt_buy | 56.4445 |
|
|
54
|
+
| CHF | MUR | tt_sell | 58.1298 |
|
|
55
|
+
| CNY | MUR | tt_buy | 7.0678 |
|
|
56
|
+
| CNY | MUR | tt_sell | 7.6404 |
|
|
57
|
+
| EUR | MUR | tt_buy | 52.526 |
|
|
58
|
+
| EUR | MUR | tt_sell | 54.0958 |
|
|
59
|
+
| GBP | MUR | tt_buy | 62.0762 |
|
|
60
|
+
| GBP | MUR | tt_sell | 63.931 |
|
|
61
|
+
| INR | MUR | tt_buy | 0.4974 |
|
|
62
|
+
| INR | MUR | tt_sell | 0.5303 |
|
|
63
|
+
| JPY | MUR | tt_buy | 0.296119 |
|
|
64
|
+
| JPY | MUR | tt_sell | 0.304979 |
|
|
65
|
+
| NZD | MUR | tt_buy | 26.4742 |
|
|
66
|
+
| NZD | MUR | tt_sell | 27.8579 |
|
|
67
|
+
| SGD | MUR | tt_buy | 36.8109 |
|
|
68
|
+
| SGD | MUR | tt_sell | 38.6919 |
|
|
69
|
+
| USD | MUR | tt_buy | 46.8687 |
|
|
70
|
+
| USD | MUR | tt_sell | 48.272 |
|
|
71
|
+
| ZAR | MUR | tt_buy | 2.8763 |
|
|
72
|
+
| ZAR | MUR | tt_sell | 3.0781 |
|
|
73
|
+
|
|
74
|
+
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.
|
|
75
|
+
<!-- daily-table:end -->
|
|
76
|
+
|
|
36
77
|
## ๐ Get your API key
|
|
37
78
|
|
|
38
79
|
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,10 +126,10 @@ const pair = await getRate('USD', 'MUR', { apiKey: 'art_live_...' });
|
|
|
85
126
|
{
|
|
86
127
|
bank: 'bmu',
|
|
87
128
|
name: 'Bank of Mauritius',
|
|
88
|
-
rate_date: '2026-10-
|
|
129
|
+
rate_date: '2026-10-12', // Bank of Mauritius's own publication date
|
|
89
130
|
source: 'USD',
|
|
90
131
|
target: 'MUR',
|
|
91
|
-
rate: 46.
|
|
132
|
+
rate: 46.8687,
|
|
92
133
|
rate_type: 'tt_buy',
|
|
93
134
|
derived: false,
|
|
94
135
|
method: 'published',
|
|
@@ -113,10 +154,10 @@ console.log(table.rate_date, table.rates.length);
|
|
|
113
154
|
{
|
|
114
155
|
bank: 'bmu',
|
|
115
156
|
name: 'Bank of Mauritius',
|
|
116
|
-
rate_date: '2026-10-
|
|
157
|
+
rate_date: '2026-10-12',
|
|
117
158
|
rates: [
|
|
118
|
-
{ "base": "USD", "quote": "MUR", "type": "tt_buy", "value": 46.
|
|
119
|
-
{ "base": "USD", "quote": "MUR", "type": "tt_sell", "value": 48.
|
|
159
|
+
{ "base": "USD", "quote": "MUR", "type": "tt_buy", "value": 46.8687 },
|
|
160
|
+
{ "base": "USD", "quote": "MUR", "type": "tt_sell", "value": 48.272 },
|
|
120
161
|
// โฆ the rest of the published table (12 currencies vs MUR)
|
|
121
162
|
],
|
|
122
163
|
disclaimer: 'โฆ'
|
|
@@ -156,7 +197,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
156
197
|
import { getHistory } from '@allratestoday/bmu-exchange-rate';
|
|
157
198
|
|
|
158
199
|
const series = await getHistory(
|
|
159
|
-
{ source: 'USD', target: 'MUR', from: '2026-01-01', to: '2026-10-
|
|
200
|
+
{ source: 'USD', target: 'MUR', from: '2026-01-01', to: '2026-10-12' },
|
|
160
201
|
{ apiKey: 'art_live_...' }
|
|
161
202
|
);
|
|
162
203
|
```
|
|
@@ -169,11 +210,11 @@ const series = await getHistory(
|
|
|
169
210
|
source: 'USD',
|
|
170
211
|
target: 'MUR',
|
|
171
212
|
from: '2026-01-01',
|
|
172
|
-
to: '2026-10-
|
|
213
|
+
to: '2026-10-12',
|
|
173
214
|
count: 152,
|
|
174
215
|
rates: [
|
|
175
216
|
// one entry per publication date
|
|
176
|
-
{ date: '2026-10-
|
|
217
|
+
{ date: '2026-10-12', rate: 46.8687, rate_type: 'tt_buy', derived: false, method: 'published' },
|
|
177
218
|
// โฆ
|
|
178
219
|
],
|
|
179
220
|
disclaimer: 'โฆ'
|
|
@@ -223,6 +264,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bmu/latest?format=xml&api_ke
|
|
|
223
264
|
- 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
|
|
224
265
|
- 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('bmu')` 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
|
|
225
266
|
- 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 bmu ...` command
|
|
267
|
+
- 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`
|
|
226
268
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
227
269
|
|
|
228
270
|
## โ๏ธ Published vs derived rates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/bmu-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
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",
|