@allratestoday/nbm-exchange-rate 1.3.7 โ†’ 1.3.13

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 +54 -51
  2. package/package.json +11 -3
package/README.md CHANGED
@@ -37,53 +37,55 @@ 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 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.
40
+ [![Latest National Bank of Moldova table](https://allratestoday.com/api/open/central-bank/nbm/table.svg)](https://allratestoday.com/central-bank-rates-api/nbm/)
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 National Bank of Moldova โ€” 40 rates. Updated 2026-10-09.
45
+ Published **2026-10-14** by National Bank of Moldova โ€” 40 rates. Updated 2026-10-14.
44
46
 
45
47
  | Base | Quote | Type | Rate |
46
48
  | --- | --- | --- | ---: |
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 |
49
+ | AED | MDL | reference | 4.8958 |
50
+ | ALL | MDL | reference | 0.2195 |
51
+ | AMD | MDL | reference | 0.04964 |
52
+ | AUD | MDL | reference | 12.5336 |
53
+ | AZN | MDL | reference | 10.5832 |
54
+ | BYN | MDL | reference | 5.9732 |
55
+ | CAD | MDL | reference | 12.6082 |
56
+ | CHF | MDL | reference | 21.5872 |
57
+ | CNY | MDL | reference | 2.6865 |
58
+ | CZK | MDL | reference | 0.8244 |
59
+ | DKK | MDL | reference | 2.6898 |
60
+ | EUR | MDL | reference | 20.1059 |
61
+ | GBP | MDL | reference | 23.794 |
62
+ | GEL | MDL | reference | 6.924 |
63
+ | HKD | MDL | reference | 2.2915 |
64
+ | HUF | MDL | reference | 0.055047 |
65
+ | ILS | MDL | reference | 5.8481 |
66
+ | INR | MDL | reference | 0.18779 |
67
+ | ISK | MDL | reference | 0.14718 |
68
+ | JPY | MDL | reference | 0.113368 |
69
+ | KGS | MDL | reference | 0.20563 |
70
+ | KRW | MDL | reference | 0.013494 |
71
+ | KWD | MDL | reference | 57.7507 |
72
+ | KZT | MDL | reference | 0.03992 |
73
+ | MKD | MDL | reference | 0.32701 |
74
+ | MYR | MDL | reference | 4.403 |
75
+ | NOK | MDL | reference | 1.8774 |
76
+ | NZD | MDL | reference | 10.0638 |
77
+ | PLN | MDL | reference | 4.5825 |
78
+ | RON | MDL | reference | 3.7675 |
79
+ | RSD | MDL | reference | 0.171253 |
80
+ | RUB | MDL | reference | 0.2145 |
81
+ | SEK | MDL | reference | 1.7936 |
82
+ | TJS | MDL | reference | 1.9492 |
83
+ | TMT | MDL | reference | 5.1393 |
84
+ | TRY | MDL | reference | 0.3642 |
85
+ | UAH | MDL | reference | 0.3995 |
86
+ | USD | MDL | reference | 17.9822 |
87
+ | UZS | MDL | reference | 0.001509 |
88
+ | XDR | MDL | reference | 24.3113 |
87
89
 
88
90
  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
91
  <!-- daily-table:end -->
@@ -140,10 +142,10 @@ const pair = await getRate('USD', 'MDL', { apiKey: 'art_live_...' });
140
142
  {
141
143
  bank: 'nbm',
142
144
  name: 'National Bank of Moldova',
143
- rate_date: '2026-10-08', // National Bank of Moldova's own publication date
145
+ rate_date: '2026-10-14', // National Bank of Moldova's own publication date
144
146
  source: 'USD',
145
147
  target: 'MDL',
146
- rate: 17.8919,
148
+ rate: 17.9822,
147
149
  rate_type: 'reference',
148
150
  derived: false,
149
151
  method: 'published',
@@ -168,9 +170,9 @@ console.log(table.rate_date, table.rates.length);
168
170
  {
169
171
  bank: 'nbm',
170
172
  name: 'National Bank of Moldova',
171
- rate_date: '2026-10-08',
173
+ rate_date: '2026-10-14',
172
174
  rates: [
173
- { "base": "USD", "quote": "MDL", "type": "reference", "value": 17.8919 },
175
+ { "base": "USD", "quote": "MDL", "type": "reference", "value": 17.9822 },
174
176
  // โ€ฆ the rest of the published table (40 currencies vs MDL)
175
177
  ],
176
178
  disclaimer: 'โ€ฆ'
@@ -210,7 +212,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
210
212
  import { getHistory } from '@allratestoday/nbm-exchange-rate';
211
213
 
212
214
  const series = await getHistory(
213
- { source: 'USD', target: 'MDL', from: '2026-01-01', to: '2026-10-08' },
215
+ { source: 'USD', target: 'MDL', from: '2026-01-01', to: '2026-10-14' },
214
216
  { apiKey: 'art_live_...' }
215
217
  );
216
218
  ```
@@ -223,11 +225,11 @@ const series = await getHistory(
223
225
  source: 'USD',
224
226
  target: 'MDL',
225
227
  from: '2026-01-01',
226
- to: '2026-10-08',
228
+ to: '2026-10-14',
227
229
  count: 152,
228
230
  rates: [
229
231
  // one entry per publication date
230
- { date: '2026-10-08', rate: 17.8919, rate_type: 'reference', derived: false, method: 'published' },
232
+ { date: '2026-10-14', rate: 17.9822, rate_type: 'reference', derived: false, method: 'published' },
231
233
  // โ€ฆ
232
234
  ],
233
235
  disclaimer: 'โ€ฆ'
@@ -277,6 +279,7 @@ curl "https://allratestoday.com/api/v1/central-bank/nbm/latest?format=xml&api_ke
277
279
  - 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
278
280
  - 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
281
  - 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
282
+ - 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`
280
283
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
281
284
 
282
285
  ## โš–๏ธ Published vs derived rates
@@ -345,9 +348,9 @@ getRate('USD', 'MDL', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
345
348
 
346
349
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
347
350
 
348
- - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) โ€” one CSV per institution (`rates/nbm.csv`)
351
+ - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) โ€” one CSV per institution (`rates/nbm.csv`)
349
352
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
350
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/nbm/latest.json`
353
+ - Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/nbm/latest.json`
351
354
 
352
355
  ## ๐Ÿ”— Links
353
356
 
package/package.json CHANGED
@@ -1,22 +1,30 @@
1
1
  {
2
2
  "name": "@allratestoday/nbm-exchange-rate",
3
- "version": "1.3.7",
3
+ "version": "1.3.13",
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",
7
+ "national-bank-of-moldova",
7
8
  "national",
8
9
  "bank",
9
- "of",
10
10
  "moldova",
11
11
  "exchange-rate",
12
12
  "exchange-rates",
13
+ "exchangerate",
14
+ "exchange rate",
15
+ "mdl-exchange-rate",
13
16
  "currency",
14
17
  "forex",
15
18
  "fx",
16
19
  "mdl",
20
+ "currency-api",
21
+ "currency-exchange-rates",
22
+ "forex-api",
23
+ "currency-conversion",
24
+ "currency-exchange",
25
+ "currency-rates",
17
26
  "central-bank",
18
27
  "official-rates",
19
- "moldova",
20
28
  "api",
21
29
  "typescript"
22
30
  ],