@allratestoday/bmu-exchange-rate 1.3.7 โ†’ 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.
Files changed (2) hide show
  1. package/README.md +37 -34
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -37,37 +37,39 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
37
37
 
38
38
  ## ๐Ÿ“ˆ Latest published table
39
39
 
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.
40
+ [![Latest Bank of Mauritius table](https://allratestoday.com/api/open/central-bank/bmu/table.svg)](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.
41
43
 
42
44
  <!-- daily-table:start -->
43
- Published **2026-10-09** by Bank of Mauritius โ€” 24 rates. Updated 2026-10-09.
45
+ Published **2026-10-12** by Bank of Mauritius โ€” 24 rates. Updated 2026-10-12.
44
46
 
45
47
  | Base | Quote | Type | Rate |
46
48
  | --- | --- | --- | ---: |
47
- | AUD | MUR | tt_buy | 33.1383 |
48
- | AUD | MUR | tt_sell | 34.939 |
49
- | CAD | MUR | tt_buy | 33.1122 |
50
- | CAD | MUR | tt_sell | 35.0146 |
51
- | CHF | MUR | tt_buy | 56.3225 |
52
- | CHF | MUR | tt_sell | 58.0009 |
53
- | CNY | MUR | tt_buy | 7.044 |
54
- | CNY | MUR | tt_sell | 7.6206 |
55
- | EUR | MUR | tt_buy | 52.5102 |
56
- | EUR | MUR | tt_sell | 54.0784 |
57
- | GBP | MUR | tt_buy | 61.9358 |
58
- | GBP | MUR | tt_sell | 63.7838 |
59
- | INR | MUR | tt_buy | 0.4922 |
60
- | INR | MUR | tt_sell | 0.5264 |
61
- | JPY | MUR | tt_buy | 0.29596 |
62
- | JPY | MUR | tt_sell | 0.304786 |
63
- | NZD | MUR | tt_buy | 26.4576 |
64
- | NZD | MUR | tt_sell | 27.8392 |
65
- | SGD | MUR | tt_buy | 36.7182 |
66
- | SGD | MUR | tt_sell | 38.5919 |
67
- | USD | MUR | tt_buy | 46.7632 |
68
- | USD | MUR | tt_sell | 48.1622 |
69
- | ZAR | MUR | tt_buy | 2.8633 |
70
- | ZAR | MUR | tt_sell | 3.0669 |
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 |
71
73
 
72
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.
73
75
  <!-- daily-table:end -->
@@ -124,10 +126,10 @@ const pair = await getRate('USD', 'MUR', { apiKey: 'art_live_...' });
124
126
  {
125
127
  bank: 'bmu',
126
128
  name: 'Bank of Mauritius',
127
- rate_date: '2026-10-08', // Bank of Mauritius's own publication date
129
+ rate_date: '2026-10-12', // Bank of Mauritius's own publication date
128
130
  source: 'USD',
129
131
  target: 'MUR',
130
- rate: 46.8243,
132
+ rate: 46.8687,
131
133
  rate_type: 'tt_buy',
132
134
  derived: false,
133
135
  method: 'published',
@@ -152,10 +154,10 @@ console.log(table.rate_date, table.rates.length);
152
154
  {
153
155
  bank: 'bmu',
154
156
  name: 'Bank of Mauritius',
155
- rate_date: '2026-10-08',
157
+ rate_date: '2026-10-12',
156
158
  rates: [
157
- { "base": "USD", "quote": "MUR", "type": "tt_buy", "value": 46.8243 },
158
- { "base": "USD", "quote": "MUR", "type": "tt_sell", "value": 48.2245 },
159
+ { "base": "USD", "quote": "MUR", "type": "tt_buy", "value": 46.8687 },
160
+ { "base": "USD", "quote": "MUR", "type": "tt_sell", "value": 48.272 },
159
161
  // โ€ฆ the rest of the published table (12 currencies vs MUR)
160
162
  ],
161
163
  disclaimer: 'โ€ฆ'
@@ -195,7 +197,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
195
197
  import { getHistory } from '@allratestoday/bmu-exchange-rate';
196
198
 
197
199
  const series = await getHistory(
198
- { source: 'USD', target: 'MUR', from: '2026-01-01', to: '2026-10-08' },
200
+ { source: 'USD', target: 'MUR', from: '2026-01-01', to: '2026-10-12' },
199
201
  { apiKey: 'art_live_...' }
200
202
  );
201
203
  ```
@@ -208,11 +210,11 @@ const series = await getHistory(
208
210
  source: 'USD',
209
211
  target: 'MUR',
210
212
  from: '2026-01-01',
211
- to: '2026-10-08',
213
+ to: '2026-10-12',
212
214
  count: 152,
213
215
  rates: [
214
216
  // one entry per publication date
215
- { date: '2026-10-08', rate: 46.8243, rate_type: 'tt_buy', derived: false, method: 'published' },
217
+ { date: '2026-10-12', rate: 46.8687, rate_type: 'tt_buy', derived: false, method: 'published' },
216
218
  // โ€ฆ
217
219
  ],
218
220
  disclaimer: 'โ€ฆ'
@@ -262,6 +264,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bmu/latest?format=xml&api_ke
262
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
263
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
264
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`
265
268
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
266
269
 
267
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.7",
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",