rbm-exchange-rate 1.3.5 โ†’ 1.3.7

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 +81 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
  [![license](https://img.shields.io/npm/l/rbm-exchange-rate.svg)](https://github.com/AllRates-Today/rbm-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/rbm-exchange-rate)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)
7
+ [![USD/MWK today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Frbm%3Fsource%3DUSD%26target%3DMWK&query=%24.rate&label=USD%2FMWK%20published%20by%20Reserve%20Bank%20of%20Malawi&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/rbm/)
8
+ [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Frbm%3Fsource%3DUSD%26target%3DMWK&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/rbm/)
7
9
 
8
10
  **Official Reserve Bank of Malawi (Malawi) 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 Reserve Bank of Malawi itself prints, every business day.**
9
11
 
@@ -33,6 +35,79 @@ 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
+ Today's full Reserve Bank of Malawi 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
+
42
+ <!-- daily-table:start -->
43
+ Published **2026-10-08** by Reserve Bank of Malawi โ€” 114 rates, first 60 shown. Updated 2026-10-08.
44
+
45
+ | Base | Quote | Type | Rate |
46
+ | --- | --- | --- | ---: |
47
+ | AED | MWK | buy | 467.5354 |
48
+ | AED | MWK | middle | 472.1611 |
49
+ | AED | MWK | sell | 476.7869 |
50
+ | ARS | MWK | buy | 1.1319 |
51
+ | ARS | MWK | middle | 1.1431 |
52
+ | ARS | MWK | sell | 1.1543 |
53
+ | AUD | MWK | buy | 1193.372 |
54
+ | AUD | MWK | middle | 1205.1792 |
55
+ | AUD | MWK | sell | 1216.9864 |
56
+ | BWP | MWK | buy | 131.5243 |
57
+ | BWP | MWK | middle | 132.8256 |
58
+ | BWP | MWK | sell | 134.1269 |
59
+ | CAD | MWK | buy | 1204.1683 |
60
+ | CAD | MWK | middle | 1216.0823 |
61
+ | CAD | MWK | sell | 1227.9963 |
62
+ | CHF | MWK | buy | 2123.6003 |
63
+ | CHF | MWK | middle | 2144.6112 |
64
+ | CHF | MWK | sell | 2165.622 |
65
+ | CMD | MWK | buy | 1717.0236 |
66
+ | CMD | MWK | middle | 1734.0118 |
67
+ | CMD | MWK | sell | 1751 |
68
+ | CNY | MWK | buy | 256.2034 |
69
+ | CNY | MWK | middle | 258.7382 |
70
+ | CNY | MWK | sell | 261.2731 |
71
+ | DKK | MWK | buy | 257.1858 |
72
+ | DKK | MWK | middle | 259.7304 |
73
+ | DKK | MWK | sell | 262.2749 |
74
+ | ETB | MWK | buy | 10.6738 |
75
+ | ETB | MWK | middle | 10.7794 |
76
+ | ETB | MWK | sell | 10.885 |
77
+ | EUR | MWK | buy | 1979.8742 |
78
+ | EUR | MWK | middle | 1999.463 |
79
+ | EUR | MWK | sell | 2019.0518 |
80
+ | GBP | MWK | buy | 2333.4042 |
81
+ | GBP | MWK | middle | 2356.4908 |
82
+ | GBP | MWK | sell | 2379.5775 |
83
+ | HKD | MWK | buy | 218.7932 |
84
+ | HKD | MWK | middle | 220.958 |
85
+ | HKD | MWK | sell | 223.1227 |
86
+ | IDR | MWK | buy | 0.096 |
87
+ | IDR | MWK | middle | 0.0969 |
88
+ | IDR | MWK | sell | 0.0979 |
89
+ | IEP | MWK | buy | 1207.5558 |
90
+ | IEP | MWK | middle | 1219.5033 |
91
+ | IEP | MWK | sell | 1231.4509 |
92
+ | INR | MWK | buy | 17.7415 |
93
+ | INR | MWK | middle | 17.917 |
94
+ | INR | MWK | sell | 18.0926 |
95
+ | JPY | MWK | buy | 10.8549 |
96
+ | JPY | MWK | middle | 10.9623 |
97
+ | JPY | MWK | sell | 11.0697 |
98
+ | KES | MWK | buy | 13.2333 |
99
+ | KES | MWK | middle | 13.3643 |
100
+ | KES | MWK | sell | 13.4952 |
101
+ | KRW | MWK | buy | 1.282 |
102
+ | KRW | MWK | middle | 1.2946 |
103
+ | KRW | MWK | sell | 1.3073 |
104
+ | KWD | MWK | buy | 5572.9427 |
105
+ | KWD | MWK | middle | 5628.0812 |
106
+ | KWD | MWK | sell | 5683.2197 |
107
+
108
+ [Full table on the Reserve Bank of Malawi rates page](https://allratestoday.com/central-bank-rates-api/rbm/) ยท Source: [Official rates published by RBM, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/rbm/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
109
+ <!-- daily-table:end -->
110
+
36
111
  ## ๐Ÿ”‘ Get your API key
37
112
 
38
113
  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,7 +160,7 @@ const pair = await getRate('USD', 'MWK', { apiKey: 'art_live_...' });
85
160
  {
86
161
  bank: 'rbm',
87
162
  name: 'Reserve Bank of Malawi',
88
- rate_date: '2026-10-06', // Reserve Bank of Malawi's own publication date
163
+ rate_date: '2026-10-08', // Reserve Bank of Malawi's own publication date
89
164
  source: 'USD',
90
165
  target: 'MWK',
91
166
  rate: 1734.0118,
@@ -113,7 +188,7 @@ console.log(table.rate_date, table.rates.length);
113
188
  {
114
189
  bank: 'rbm',
115
190
  name: 'Reserve Bank of Malawi',
116
- rate_date: '2026-10-06',
191
+ rate_date: '2026-10-08',
117
192
  rates: [
118
193
  { "base": "USD", "quote": "MWK", "type": "middle", "value": 1734.0118 },
119
194
  { "base": "USD", "quote": "MWK", "type": "sell", "value": 1751 },
@@ -157,7 +232,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
157
232
  import { getHistory } from 'rbm-exchange-rate';
158
233
 
159
234
  const series = await getHistory(
160
- { source: 'USD', target: 'MWK', from: '2026-01-01', to: '2026-10-06' },
235
+ { source: 'USD', target: 'MWK', from: '2026-01-01', to: '2026-10-08' },
161
236
  { apiKey: 'art_live_...' }
162
237
  );
163
238
  ```
@@ -170,11 +245,11 @@ const series = await getHistory(
170
245
  source: 'USD',
171
246
  target: 'MWK',
172
247
  from: '2026-01-01',
173
- to: '2026-10-06',
248
+ to: '2026-10-08',
174
249
  count: 152,
175
250
  rates: [
176
251
  // one entry per publication date
177
- { date: '2026-10-06', rate: 1734.0118, rate_type: 'middle', derived: false, method: 'published' },
252
+ { date: '2026-10-08', rate: 1734.0118, rate_type: 'middle', derived: false, method: 'published' },
178
253
  // โ€ฆ
179
254
  ],
180
255
  disclaimer: 'โ€ฆ'
@@ -223,6 +298,7 @@ curl "https://allratestoday.com/api/v1/central-bank/rbm/latest?format=xml&api_ke
223
298
 
224
299
  - 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
225
300
  - 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('rbm')` 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
301
+ - 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 rbm ...` command
226
302
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
227
303
 
228
304
  ## โš–๏ธ Published vs derived rates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rbm-exchange-rate",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "description": "Official Reserve Bank of Malawi (Malawi) daily exchange rates โ€” 37 currencies vs MWK, history since 2016. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "rbm",