@allratestoday/nbm-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 +63 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
  [![license](https://img.shields.io/npm/l/@allratestoday%2Fnbm-exchange-rate.svg)](https://github.com/AllRates-Today/nbm-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/@allratestoday/nbm-exchange-rate)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)
7
+ [![USD/MDL today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fnbm%3Fsource%3DUSD%26target%3DMDL&query=%24.rate&label=USD%2FMDL%20published%20by%20National%20Bank%20of%20Moldova&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/nbm/)
8
+ [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fnbm%3Fsource%3DUSD%26target%3DMDL&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/nbm/)
7
9
 
8
10
  **Official National Bank of Moldova (Moldova) 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 National Bank of Moldova itself prints, every business day.**
9
11
 
@@ -33,6 +35,59 @@ 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 National Bank of Moldova 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-09** by National Bank of Moldova โ€” 40 rates. Updated 2026-10-09.
44
+
45
+ | Base | Quote | Type | Rate |
46
+ | --- | --- | --- | ---: |
47
+ | AED | MDL | reference | 4.8735 |
48
+ | ALL | MDL | reference | 0.21832 |
49
+ | AMD | MDL | reference | 0.0494 |
50
+ | AUD | MDL | reference | 12.4336 |
51
+ | AZN | MDL | reference | 10.5321 |
52
+ | BYN | MDL | reference | 5.8436 |
53
+ | CAD | MDL | reference | 12.5575 |
54
+ | CHF | MDL | reference | 21.4683 |
55
+ | CNY | MDL | reference | 2.6703 |
56
+ | CZK | MDL | reference | 0.82 |
57
+ | DKK | MDL | reference | 2.6784 |
58
+ | EUR | MDL | reference | 20.0179 |
59
+ | GBP | MDL | reference | 23.63 |
60
+ | GEL | MDL | reference | 6.8834 |
61
+ | HKD | MDL | reference | 2.281 |
62
+ | HUF | MDL | reference | 0.054612 |
63
+ | ILS | MDL | reference | 5.8109 |
64
+ | INR | MDL | reference | 0.18494 |
65
+ | ISK | MDL | reference | 0.14612 |
66
+ | JPY | MDL | reference | 0.113121 |
67
+ | KGS | MDL | reference | 0.20337 |
68
+ | KRW | MDL | reference | 0.013308 |
69
+ | KWD | MDL | reference | 57.5641 |
70
+ | KZT | MDL | reference | 0.03964 |
71
+ | MKD | MDL | reference | 0.32522 |
72
+ | MYR | MDL | reference | 4.3743 |
73
+ | NOK | MDL | reference | 1.8689 |
74
+ | NZD | MDL | reference | 10.0044 |
75
+ | PLN | MDL | reference | 4.5709 |
76
+ | RON | MDL | reference | 3.7457 |
77
+ | RSD | MDL | reference | 0.170506 |
78
+ | RUB | MDL | reference | 0.2095 |
79
+ | SEK | MDL | reference | 1.7859 |
80
+ | TJS | MDL | reference | 1.9406 |
81
+ | TMT | MDL | reference | 5.1146 |
82
+ | TRY | MDL | reference | 0.3626 |
83
+ | UAH | MDL | reference | 0.3987 |
84
+ | USD | MDL | reference | 17.9003 |
85
+ | UZS | MDL | reference | 0.001515 |
86
+ | XDR | MDL | reference | 24.1975 |
87
+
88
+ Source: [Official rates published by NBM, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/nbm/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
89
+ <!-- daily-table:end -->
90
+
36
91
  ## ๐Ÿ”‘ Get your API key
37
92
 
38
93
  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 +140,10 @@ const pair = await getRate('USD', 'MDL', { apiKey: 'art_live_...' });
85
140
  {
86
141
  bank: 'nbm',
87
142
  name: 'National Bank of Moldova',
88
- rate_date: '2026-10-06', // National Bank of Moldova's own publication date
143
+ rate_date: '2026-10-08', // National Bank of Moldova's own publication date
89
144
  source: 'USD',
90
145
  target: 'MDL',
91
- rate: 17.9297,
146
+ rate: 17.8919,
92
147
  rate_type: 'reference',
93
148
  derived: false,
94
149
  method: 'published',
@@ -113,9 +168,9 @@ console.log(table.rate_date, table.rates.length);
113
168
  {
114
169
  bank: 'nbm',
115
170
  name: 'National Bank of Moldova',
116
- rate_date: '2026-10-06',
171
+ rate_date: '2026-10-08',
117
172
  rates: [
118
- { "base": "USD", "quote": "MDL", "type": "reference", "value": 17.9297 },
173
+ { "base": "USD", "quote": "MDL", "type": "reference", "value": 17.8919 },
119
174
  // โ€ฆ the rest of the published table (40 currencies vs MDL)
120
175
  ],
121
176
  disclaimer: 'โ€ฆ'
@@ -155,7 +210,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
155
210
  import { getHistory } from '@allratestoday/nbm-exchange-rate';
156
211
 
157
212
  const series = await getHistory(
158
- { source: 'USD', target: 'MDL', from: '2026-01-01', to: '2026-10-06' },
213
+ { source: 'USD', target: 'MDL', from: '2026-01-01', to: '2026-10-08' },
159
214
  { apiKey: 'art_live_...' }
160
215
  );
161
216
  ```
@@ -168,11 +223,11 @@ const series = await getHistory(
168
223
  source: 'USD',
169
224
  target: 'MDL',
170
225
  from: '2026-01-01',
171
- to: '2026-10-06',
226
+ to: '2026-10-08',
172
227
  count: 152,
173
228
  rates: [
174
229
  // one entry per publication date
175
- { date: '2026-10-06', rate: 17.9297, rate_type: 'reference', derived: false, method: 'published' },
230
+ { date: '2026-10-08', rate: 17.8919, rate_type: 'reference', derived: false, method: 'published' },
176
231
  // โ€ฆ
177
232
  ],
178
233
  disclaimer: 'โ€ฆ'
@@ -221,6 +276,7 @@ curl "https://allratestoday.com/api/v1/central-bank/nbm/latest?format=xml&api_ke
221
276
 
222
277
  - 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
223
278
  - 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('nbm')` 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
279
+ - 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 nbm ...` command
224
280
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
225
281
 
226
282
  ## โš–๏ธ Published vs derived rates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allratestoday/nbm-exchange-rate",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "description": "Official National Bank of Moldova (Moldova) daily exchange rates โ€” 40 currencies vs MDL, history since 1994. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "nbm",