@allratestoday/nbm-exchange-rate 1.3.9 → 1.3.14

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 +51 -51
  2. package/package.json +11 -3
package/README.md CHANGED
@@ -42,50 +42,50 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
42
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.
43
43
 
44
44
  <!-- daily-table:start -->
45
- Published **2026-10-12** by National Bank of Moldova — 40 rates. Updated 2026-10-12.
45
+ Published **2026-10-16** by National Bank of Moldova — 40 rates. Updated 2026-10-16.
46
46
 
47
47
  | Base | Quote | Type | Rate |
48
48
  | --- | --- | --- | ---: |
49
- | AED | MDL | reference | 4.8743 |
50
- | ALL | MDL | reference | 0.21887 |
51
- | AMD | MDL | reference | 0.04938 |
52
- | AUD | MDL | reference | 12.4893 |
53
- | AZN | MDL | reference | 10.5346 |
54
- | BYN | MDL | reference | 5.8855 |
55
- | CAD | MDL | reference | 12.5751 |
56
- | CHF | MDL | reference | 21.5442 |
57
- | CNY | MDL | reference | 2.6752 |
58
- | CZK | MDL | reference | 0.824 |
59
- | DKK | MDL | reference | 2.6845 |
60
- | EUR | MDL | reference | 20.0678 |
61
- | GBP | MDL | reference | 23.6825 |
62
- | GEL | MDL | reference | 6.8821 |
63
- | HKD | MDL | reference | 2.2814 |
64
- | HUF | MDL | reference | 0.054958 |
65
- | ILS | MDL | reference | 5.858 |
66
- | INR | MDL | reference | 0.1851 |
67
- | ISK | MDL | reference | 0.14669 |
68
- | JPY | MDL | reference | 0.113087 |
69
- | KGS | MDL | reference | 0.20388 |
70
- | KRW | MDL | reference | 0.013351 |
71
- | KWD | MDL | reference | 57.5751 |
72
- | KZT | MDL | reference | 0.03942 |
73
- | MKD | MDL | reference | 0.32546 |
74
- | MYR | MDL | reference | 4.3822 |
75
- | NOK | MDL | reference | 1.8695 |
76
- | NZD | MDL | reference | 10.0437 |
77
- | PLN | MDL | reference | 4.5806 |
78
- | RON | MDL | reference | 3.7575 |
79
- | RSD | MDL | reference | 0.170916 |
80
- | RUB | MDL | reference | 0.2103 |
81
- | SEK | MDL | reference | 1.7955 |
82
- | TJS | MDL | reference | 1.9411 |
83
- | TMT | MDL | reference | 5.1157 |
84
- | TRY | MDL | reference | 0.3628 |
85
- | UAH | MDL | reference | 0.3986 |
86
- | USD | MDL | reference | 17.9033 |
87
- | UZS | MDL | reference | 0.001506 |
88
- | XDR | MDL | reference | 24.2288 |
49
+ | AED | MDL | reference | 4.8799 |
50
+ | ALL | MDL | reference | 0.22011 |
51
+ | AMD | MDL | reference | 0.04946 |
52
+ | AUD | MDL | reference | 12.406 |
53
+ | AZN | MDL | reference | 10.5452 |
54
+ | BYN | MDL | reference | 5.9552 |
55
+ | CAD | MDL | reference | 12.6217 |
56
+ | CHF | MDL | reference | 21.5951 |
57
+ | CNY | MDL | reference | 2.6791 |
58
+ | CZK | MDL | reference | 0.8252 |
59
+ | DKK | MDL | reference | 2.6887 |
60
+ | EUR | MDL | reference | 20.0981 |
61
+ | GBP | MDL | reference | 23.7544 |
62
+ | GEL | MDL | reference | 6.9031 |
63
+ | HKD | MDL | reference | 2.284 |
64
+ | HUF | MDL | reference | 0.055293 |
65
+ | ILS | MDL | reference | 5.7791 |
66
+ | INR | MDL | reference | 0.1886 |
67
+ | ISK | MDL | reference | 0.14735 |
68
+ | JPY | MDL | reference | 0.1136 |
69
+ | KGS | MDL | reference | 0.20512 |
70
+ | KRW | MDL | reference | 0.013327 |
71
+ | KWD | MDL | reference | 57.6207 |
72
+ | KZT | MDL | reference | 0.03951 |
73
+ | MKD | MDL | reference | 0.32594 |
74
+ | MYR | MDL | reference | 4.3911 |
75
+ | NOK | MDL | reference | 1.8836 |
76
+ | NZD | MDL | reference | 10.0518 |
77
+ | PLN | MDL | reference | 4.6007 |
78
+ | RON | MDL | reference | 3.767 |
79
+ | RSD | MDL | reference | 0.171132 |
80
+ | RUB | MDL | reference | 0.214 |
81
+ | SEK | MDL | reference | 1.7977 |
82
+ | TJS | MDL | reference | 1.9418 |
83
+ | TMT | MDL | reference | 5.1204 |
84
+ | TRY | MDL | reference | 0.3618 |
85
+ | UAH | MDL | reference | 0.3995 |
86
+ | USD | MDL | reference | 17.9239 |
87
+ | UZS | MDL | reference | 0.001492 |
88
+ | XDR | MDL | reference | 24.2705 |
89
89
 
90
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.
91
91
  <!-- daily-table:end -->
@@ -142,10 +142,10 @@ const pair = await getRate('USD', 'MDL', { apiKey: 'art_live_...' });
142
142
  {
143
143
  bank: 'nbm',
144
144
  name: 'National Bank of Moldova',
145
- rate_date: '2026-10-12', // National Bank of Moldova's own publication date
145
+ rate_date: '2026-10-14', // National Bank of Moldova's own publication date
146
146
  source: 'USD',
147
147
  target: 'MDL',
148
- rate: 17.9033,
148
+ rate: 17.9822,
149
149
  rate_type: 'reference',
150
150
  derived: false,
151
151
  method: 'published',
@@ -170,9 +170,9 @@ console.log(table.rate_date, table.rates.length);
170
170
  {
171
171
  bank: 'nbm',
172
172
  name: 'National Bank of Moldova',
173
- rate_date: '2026-10-12',
173
+ rate_date: '2026-10-14',
174
174
  rates: [
175
- { "base": "USD", "quote": "MDL", "type": "reference", "value": 17.9033 },
175
+ { "base": "USD", "quote": "MDL", "type": "reference", "value": 17.9822 },
176
176
  // … the rest of the published table (40 currencies vs MDL)
177
177
  ],
178
178
  disclaimer: '…'
@@ -212,7 +212,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
212
212
  import { getHistory } from '@allratestoday/nbm-exchange-rate';
213
213
 
214
214
  const series = await getHistory(
215
- { source: 'USD', target: 'MDL', from: '2026-01-01', to: '2026-10-12' },
215
+ { source: 'USD', target: 'MDL', from: '2026-01-01', to: '2026-10-14' },
216
216
  { apiKey: 'art_live_...' }
217
217
  );
218
218
  ```
@@ -225,11 +225,11 @@ const series = await getHistory(
225
225
  source: 'USD',
226
226
  target: 'MDL',
227
227
  from: '2026-01-01',
228
- to: '2026-10-12',
228
+ to: '2026-10-14',
229
229
  count: 152,
230
230
  rates: [
231
231
  // one entry per publication date
232
- { date: '2026-10-12', rate: 17.9033, rate_type: 'reference', derived: false, method: 'published' },
232
+ { date: '2026-10-14', rate: 17.9822, rate_type: 'reference', derived: false, method: 'published' },
233
233
  // …
234
234
  ],
235
235
  disclaimer: '…'
@@ -279,7 +279,7 @@ curl "https://allratestoday.com/api/v1/central-bank/nbm/latest?format=xml&api_ke
279
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
280
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
281
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`
282
+ - 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`
283
283
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
284
284
 
285
285
  ## ⚖️ Published vs derived rates
@@ -348,9 +348,9 @@ getRate('USD', 'MDL', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
348
348
 
349
349
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
350
350
 
351
- - 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`)
352
352
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
353
- - 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`
354
354
 
355
355
  ## 🔗 Links
356
356
 
package/package.json CHANGED
@@ -1,22 +1,30 @@
1
1
  {
2
2
  "name": "@allratestoday/nbm-exchange-rate",
3
- "version": "1.3.9",
3
+ "version": "1.3.14",
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
  ],