bmu-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 +34 -33
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,34 +40,34 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
|
|
|
40
40
|
Today's full Bank of Mauritius 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 Bank of Mauritius — 24 rates. Updated 2026-10-12.
|
|
44
44
|
|
|
45
45
|
| Base | Quote | Type | Rate |
|
|
46
46
|
| --- | --- | --- | ---: |
|
|
47
|
-
| AUD | MUR | tt_buy | 33.
|
|
48
|
-
| AUD | MUR | tt_sell |
|
|
49
|
-
| CAD | MUR | tt_buy | 33.
|
|
50
|
-
| CAD | MUR | tt_sell |
|
|
51
|
-
| CHF | MUR | tt_buy | 56.
|
|
52
|
-
| CHF | MUR | tt_sell | 58.
|
|
53
|
-
| CNY | MUR | tt_buy | 7.
|
|
54
|
-
| CNY | MUR | tt_sell | 7.
|
|
55
|
-
| EUR | MUR | tt_buy | 52.
|
|
56
|
-
| EUR | MUR | tt_sell | 54.
|
|
57
|
-
| GBP | MUR | tt_buy |
|
|
58
|
-
| GBP | MUR | tt_sell | 63.
|
|
59
|
-
| INR | MUR | tt_buy | 0.
|
|
60
|
-
| INR | MUR | tt_sell | 0.
|
|
61
|
-
| JPY | MUR | tt_buy | 0.
|
|
62
|
-
| JPY | MUR | tt_sell | 0.
|
|
63
|
-
| NZD | MUR | tt_buy | 26.
|
|
64
|
-
| NZD | MUR | tt_sell | 27.
|
|
65
|
-
| SGD | MUR | tt_buy | 36.
|
|
66
|
-
| SGD | MUR | tt_sell | 38.
|
|
67
|
-
| USD | MUR | tt_buy | 46.
|
|
68
|
-
| USD | MUR | tt_sell | 48.
|
|
69
|
-
| ZAR | MUR | tt_buy | 2.
|
|
70
|
-
| ZAR | MUR | tt_sell | 3.
|
|
47
|
+
| AUD | MUR | tt_buy | 33.2144 |
|
|
48
|
+
| AUD | MUR | tt_sell | 35.0206 |
|
|
49
|
+
| CAD | MUR | tt_buy | 33.0803 |
|
|
50
|
+
| CAD | MUR | tt_sell | 34.9804 |
|
|
51
|
+
| CHF | MUR | tt_buy | 56.4445 |
|
|
52
|
+
| CHF | MUR | tt_sell | 58.1298 |
|
|
53
|
+
| CNY | MUR | tt_buy | 7.0678 |
|
|
54
|
+
| CNY | MUR | tt_sell | 7.6404 |
|
|
55
|
+
| EUR | MUR | tt_buy | 52.526 |
|
|
56
|
+
| EUR | MUR | tt_sell | 54.0958 |
|
|
57
|
+
| GBP | MUR | tt_buy | 62.0762 |
|
|
58
|
+
| GBP | MUR | tt_sell | 63.931 |
|
|
59
|
+
| INR | MUR | tt_buy | 0.4974 |
|
|
60
|
+
| INR | MUR | tt_sell | 0.5303 |
|
|
61
|
+
| JPY | MUR | tt_buy | 0.296119 |
|
|
62
|
+
| JPY | MUR | tt_sell | 0.304979 |
|
|
63
|
+
| NZD | MUR | tt_buy | 26.4742 |
|
|
64
|
+
| NZD | MUR | tt_sell | 27.8579 |
|
|
65
|
+
| SGD | MUR | tt_buy | 36.8109 |
|
|
66
|
+
| SGD | MUR | tt_sell | 38.6919 |
|
|
67
|
+
| USD | MUR | tt_buy | 46.8687 |
|
|
68
|
+
| USD | MUR | tt_sell | 48.272 |
|
|
69
|
+
| ZAR | MUR | tt_buy | 2.8763 |
|
|
70
|
+
| ZAR | MUR | tt_sell | 3.0781 |
|
|
71
71
|
|
|
72
72
|
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.
|
|
73
73
|
<!-- daily-table:end -->
|
|
@@ -124,10 +124,10 @@ const pair = await getRate('USD', 'MUR', { apiKey: 'art_live_...' });
|
|
|
124
124
|
{
|
|
125
125
|
bank: 'bmu',
|
|
126
126
|
name: 'Bank of Mauritius',
|
|
127
|
-
rate_date: '2026-10-
|
|
127
|
+
rate_date: '2026-10-12', // Bank of Mauritius's own publication date
|
|
128
128
|
source: 'USD',
|
|
129
129
|
target: 'MUR',
|
|
130
|
-
rate: 46.
|
|
130
|
+
rate: 46.8687,
|
|
131
131
|
rate_type: 'tt_buy',
|
|
132
132
|
derived: false,
|
|
133
133
|
method: 'published',
|
|
@@ -152,10 +152,10 @@ console.log(table.rate_date, table.rates.length);
|
|
|
152
152
|
{
|
|
153
153
|
bank: 'bmu',
|
|
154
154
|
name: 'Bank of Mauritius',
|
|
155
|
-
rate_date: '2026-10-
|
|
155
|
+
rate_date: '2026-10-12',
|
|
156
156
|
rates: [
|
|
157
|
-
{ "base": "USD", "quote": "MUR", "type": "tt_buy", "value": 46.
|
|
158
|
-
{ "base": "USD", "quote": "MUR", "type": "tt_sell", "value": 48.
|
|
157
|
+
{ "base": "USD", "quote": "MUR", "type": "tt_buy", "value": 46.8687 },
|
|
158
|
+
{ "base": "USD", "quote": "MUR", "type": "tt_sell", "value": 48.272 },
|
|
159
159
|
// … the rest of the published table (12 currencies vs MUR)
|
|
160
160
|
],
|
|
161
161
|
disclaimer: '…'
|
|
@@ -195,7 +195,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
195
195
|
import { getHistory } from 'bmu-exchange-rate';
|
|
196
196
|
|
|
197
197
|
const series = await getHistory(
|
|
198
|
-
{ source: 'USD', target: 'MUR', from: '2026-01-01', to: '2026-10-
|
|
198
|
+
{ source: 'USD', target: 'MUR', from: '2026-01-01', to: '2026-10-12' },
|
|
199
199
|
{ apiKey: 'art_live_...' }
|
|
200
200
|
);
|
|
201
201
|
```
|
|
@@ -208,11 +208,11 @@ const series = await getHistory(
|
|
|
208
208
|
source: 'USD',
|
|
209
209
|
target: 'MUR',
|
|
210
210
|
from: '2026-01-01',
|
|
211
|
-
to: '2026-10-
|
|
211
|
+
to: '2026-10-12',
|
|
212
212
|
count: 152,
|
|
213
213
|
rates: [
|
|
214
214
|
// one entry per publication date
|
|
215
|
-
{ date: '2026-10-
|
|
215
|
+
{ date: '2026-10-12', rate: 46.8687, rate_type: 'tt_buy', derived: false, method: 'published' },
|
|
216
216
|
// …
|
|
217
217
|
],
|
|
218
218
|
disclaimer: '…'
|
|
@@ -262,6 +262,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bmu/latest?format=xml&api_ke
|
|
|
262
262
|
- 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
|
|
263
263
|
- 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
|
|
264
264
|
- 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
|
|
265
|
+
- 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`
|
|
265
266
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
266
267
|
|
|
267
268
|
## ⚖️ Published vs derived rates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bmu-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
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",
|