bmu-exchange-rate 1.3.29 โ†’ 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 +48 -48
  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,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 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
 
@@ -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-06 by Bank of Mauritius โ€” 24 rates. Updated 2026-11-08.</summary>
35
+ <summary>Table as text: published 2026-11-11 by Bank of Mauritius โ€” 24 rates. Updated 2026-11-11.</summary>
36
36
 
37
37
  | Base | Quote | Type | Rate |
38
38
  | --- | --- | --- | ---: |
39
- | AUD | MUR | tt_buy | 32.4635 |
40
- | AUD | MUR | tt_sell | 34.2395 |
41
- | CAD | MUR | tt_buy | 33.2084 |
42
- | CAD | MUR | tt_sell | 35.1164 |
43
- | CHF | MUR | tt_buy | 56.6998 |
44
- | CHF | MUR | tt_sell | 58.3953 |
45
- | CNY | MUR | tt_buy | 7.0144 |
46
- | CNY | MUR | tt_sell | 7.591 |
47
- | EUR | MUR | tt_buy | 51.8755 |
48
- | EUR | MUR | tt_sell | 53.4306 |
49
- | GBP | MUR | tt_buy | 62.2371 |
50
- | GBP | MUR | tt_sell | 64.0996 |
51
- | INR | MUR | tt_buy | 0.4986 |
52
- | INR | MUR | tt_sell | 0.533 |
53
- | JPY | MUR | tt_buy | 0.293477 |
54
- | JPY | MUR | tt_sell | 0.302276 |
55
- | NZD | MUR | tt_buy | 25.9442 |
56
- | NZD | MUR | tt_sell | 27.304 |
57
- | SGD | MUR | tt_buy | 36.3806 |
58
- | SGD | MUR | tt_sell | 38.2416 |
59
- | USD | MUR | tt_buy | 46.3301 |
60
- | USD | MUR | tt_sell | 47.7259 |
61
- | ZAR | MUR | tt_buy | 2.84 |
62
- | ZAR | MUR | tt_sell | 3.0375 |
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
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 published table
97
- - [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
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 *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).
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-10-14', // Bank of Mauritius's own publication date
117
+ rate_date: '2026-11-11', // Bank of Mauritius's own publication date
118
118
  source: 'USD',
119
119
  target: 'MUR',
120
- rate: 46.9053,
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 published table
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-10-14',
145
+ rate_date: '2026-11-11',
146
146
  rates: [
147
- { "base": "USD", "quote": "MUR", "type": "tt_buy", "value": 46.9053 },
148
- { "base": "USD", "quote": "MUR", "type": "tt_sell", "value": 48.3088 },
149
- // โ€ฆ 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)
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-10-14' },
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-10-14',
201
+ to: '2026-11-11',
202
202
  count: 152,
203
203
  rates: [
204
204
  // one entry per publication date
205
- { 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' },
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
- ## โš–๏ธ Published vs derived rates
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 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.
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 published table |
317
- | `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 |
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 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:
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,7 +330,7 @@ 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
335
  - [Package docs on the site](https://allratestoday.com/docs/sdk/bmu-exchange-rate/) ยท [ERP integration guides](https://allratestoday.com/docs/integrations/)
336
336
  - [API documentation](https://allratestoday.com/docs/#central-bank) ยท [Interactive reference](https://allratestoday.com/api-reference/) ยท [Methodology](https://allratestoday.com/official-rates-methodology/)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bmu-exchange-rate",
3
- "version": "1.3.29",
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",