Agentic Trading Lab
Talk to agents, and test trading ideas. Try AI trading agents on real market data with no code required.
AI translation
Official National Bank of Moldova rates for 3 Nov 2026: 1 USD = 17.985 MDL, 1 EUR = 20.158 MDL. All 40 currencies published, history back to 1994. Free JSON API for tax, audits, and compliant invoicin
FinanceJavaScriptGitHub @AllRates-TodayOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
National Bank of Moldova official MDL exchange rates — zero-dependency JS/TS SDK
Translation pending
Taken from the repository README
Loading the full README.
Read the full README ↗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.
rate_date on every responsederived: true, never mixed with official printsfetch; Node 18+, Bun, Deno, and edge runtimesrate_type, publication date, and source disclaimer on every responseOfficial rate, not mid-market: every value here is a number National Bank of Moldova itself published, fixed once printed and carrying the central bank's own
rate_date— what filings and audits require. Need the live mid-market rate for pricing or display instead? Use the mid-market API or@allratestoday/sdk. The two can diverge by several percent.
Get a free API key at allratestoday.com/register — no credit card required. Latest rates are on every plan, including free.
The image is rendered live from the keyless endpoint, so it follows the central bank's publications on npm and on GitHub alike without a new release. The same table as text is folded below for search and copy-paste: on GitHub a daily Action refreshes it whenever the central bank publishes a new table; on npm it is as of the package's publish date.
| Base | Quote | Type | Rate |
|---|---|---|---|
| AED | MDL | reference | 4.8966 |
| ALL | MDL | reference | 0.22173 |
| AMD | MDL | reference | 0.04985 |
| AUD | MDL | reference | 12.5996 |
| AZN | MDL | reference | 10.5816 |
| BYN | MDL | reference | 6.081 |
| CAD | MDL | reference | 12.8693 |
| CHF | MDL | reference | 21.9279 |
| CNY | MDL | reference | 2.7061 |
| CZK | MDL | reference | 0.8281 |
| DKK | MDL | reference | 2.697 |
| EUR | MDL | reference | 20.1579 |
| GBP | MDL | reference | 24.1273 |
| GEL | MDL | reference | 6.9281 |
| HKD | MDL | reference | 2.2923 |
| HUF | MDL | reference | 0.055266 |
| ILS | MDL | reference | 5.7338 |
| INR | MDL | reference | 0.18953 |
| ISK | MDL | reference | 0.148 |
| JPY | MDL | reference | 0.11387 |
| KGS | MDL | reference | 0.20656 |
| KRW | MDL | reference | 0.013395 |
Source: Official rates published by NBM, served by AllRatesToday. Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
npm install nbm-exchange-rate
yarn add nbm-exchange-rate
pnpm add nbm-exchange-rate
Requires Node 18+ (global fetch); also runs on Bun, Deno and edge runtimes. Also published under the org scope as @allratestoday/nbm-exchange-rate — same code, same versions.
import { getRate } from 'nbm-exchange-rate';
const pair = await getRate('USD', 'MDL', { apiKey: 'art_live_...' });
console.log(pair.rate, pair.rate_date); // the official National Bank of Moldova rate, on the central bank's own date
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).
const pair = await getRate('USD', 'MDL', { apiKey: 'art_live_...' });
Response:
{
bank: 'nbm',
name: 'National Bank of Moldova',
rate_date: '2026-10-14', // National Bank of Moldova's own publication date
source: 'USD',
target: 'MDL',
rate: 17.9822,
rate_type: 'reference',
derived: false,
method: 'published',
disclaimer: 'Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned.'
}
Free plan and up. The complete table for the latest publication date.
import { getLatestRates } from 'nbm-exchange-rate';
const table = await getLatestRates({ apiKey: 'art_live_...' });
console.log(table.rate_date, table.rates.length);
Response:
{
bank: 'nbm',
name: 'National Bank of Moldova',
rate_date: '2026-10-14',
rates: [
{ "base": "USD", "quote": "MDL", "type": "reference", "value": 17.9822 },
// … the rest of the published table (40 currencies vs MDL)
],
disclaimer: '…'
}
Paid plans. The official table for any date since 1994 — weekends and holidays return the most recent published date, flagged via published_on_requested_date, which is exactly the in-force rate a filing needs.
import { getRatesForDate } from 'nbm-exchange-rate';
const day = await getRatesForDate('2026-06-30', { apiKey: 'art_live_...' });
// Optionally narrow to one pair:
const one = await getRatesForDate('2026-06-30', { apiKey: 'art_live_...', source: 'USD', target: 'MDL' });
Response:
{
bank: 'nbm',
requested_date: '2026-06-30',
rate_date: '2026-06-30', // the date actually published
published_on_requested_date: true, // false when a weekend/holiday fell back
rates: [ /* the full table for that date */ ],
disclaimer: '…'
}
Paid plans. One resolved rate per publication date — ready for charting, revaluation runs, or audit workpapers.
import { getHistory } from 'nbm-exchange-rate';
const series = await getHistory(
{ source: 'USD', target: 'MDL', from: '2026-01-01', to: '2026-10-14' },
{ apiKey: 'art_live_...' }
);
Response:
{
bank: 'nbm',
source: 'USD',
target: 'MDL',
from: '2026-01-01',
to: '2026-10-14',
count: 152,
rates: [
// one entry per publication date
{ date: '2026-10-14', rate: 17.9822, rate_type: 'reference', derived: false, method: 'published' },
// …
],
disclaimer: '…'
}
Pass { symbol: 'USD' } instead of source/target to get the raw published rows for one currency (all rate types, no pair resolution).
National Bank of Moldova currently publishes rates covering 40 currencies against the MDL (as of the latest table):
🇦🇪 AED · 🇦🇱 ALL · 🇦🇲 AMD · 🇦🇺 AUD · 🇦🇿 AZN · 🇧🇾 BYN · 🇨🇦 CAD · 🇨🇭 CHF · 🇨🇳 CNY · 🇨🇿 CZK · 🇩🇰 DKK · 🇪🇺 EUR · 🇬🇧 GBP · 🇬🇪 GEL · 🇭🇰 HKD · 🇭🇺 HUF · 🇮🇱 ILS · 🇮🇳 INR · 🇮🇸 ISK · 🇯🇵 JPY · 🇰🇬 KGS · 🇰🇷 KRW · 🇰🇼 KWD · 🇰🇿 KZT · 🇲🇰 MKD · 🇲🇾 MYR · 🇳🇴 NOK · 🇳🇿 NZD · 🇵🇱 PLN · 🇷🇴 RON · 🇷🇸 RSD · 🇷🇺 RUB · 🇸🇪 SEK · 🇹🇯 TJS · 🇹🇲 TMT · 🇹🇷 TRY · 🇺🇦 UAH · 🇺🇸 USD · 🇺🇿 UZS · XDR
The National Bank of Moldova sets the official leu exchange rate each working afternoon, valid for the following day — the rate Moldovan accounting, customs and tax filings reference. The table covers 40 currencies and its archive reaches back to 1994, the leu's first year.
rate_date moves; every response carries the same figure as available_by_utc — see when to pollrate_date on every row — see the methodologyvalue is always quote currency per 1 unit of base currency (base: "EUR", quote: "USD", value: 1.15 means 1 EUR = 1.15 USD).base: "USD", quote: "MDL" means MDL per one US dollar).getRate(target, source) and the API inverts or crosses for you, flagged derived: true — never divide a published rate yourself in a compliance workflow.rate_type tells you which of the central bank's series a row belongs to (reference here); some publishers print buy/sell or several fixings for the same pair.Loading the official National Bank of Moldova rate into an accounting system is a supported workflow, not a hack. Step-by-step guides with the direction each system expects:
The same keyed endpoints return ?format=csv, ?format=xml and ?format=xlsx, and accept the key as ?api_key= on the URL for importers that cannot send headers:
curl "https://allratestoday.com/api/v1/central-bank/nbm/latest?format=xml&api_key=art_live_..."
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@allratestoday/sdk 1.4+ has officialRates('nbm') and @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/plugin marketplace add AllRates-Today/claude-code-plugin then /plugin install allratestoday@allratestoday — bundles both MCP servers plus an /official-rate nbm ... commandPOST 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. The MCP servers expose it as request_trial_keyIf National Bank of Moldova 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:
method | derived | Meaning |
|---|---|---|
published | false | The central bank printed this pair directly |
inverse | true | Computed as 1 ÷ the published opposite direction |
cross | true | Computed via MDL from two published rates |
Errors are thrown as Error with status (HTTP code) and body (the API's JSON error) attached:
try {
const pair = await getRate('USD', 'XXX', { apiKey: 'art_live_...' });
} catch (err) {
console.log(err.message); // human-readable reason
console.log(err.status); // e.g. 404
}
| Status | Meaning |
|---|---|
| — | Missing apiKey (thrown before any request) |
400 | Malformed date or parameters |
401 | Invalid API key |
403 | Endpoint needs a paid plan (historical dates & series) |
404 | Pair or date range not covered by National Bank of Moldova |
429 | Monthly quota exceeded |
Full definitions ship with the package — no @types install:
import type { LatestRates, PairRate, DatedRates, RateEntry, HistoryQuery, RequestOptions } from 'nbm-exchange-rate';
const { getRate } = require('nbm-exchange-rate');
getRate('USD', 'MDL', { apiKey: 'art_live_...' }).then((pair) => console.log(pair.rate));
| Method | Plan | Description |
|---|---|---|
getRate(source, target, { apiKey }) | Free | Latest rate for one pair, resolved from the published table |
getLatestRates({ apiKey }) | Free | The central bank's full latest published table |
getRatesForDate(date, { apiKey, source?, target? }) | Paid | The official table (or one pair) for a YYYY-MM-DD date |
getHistory({ symbol | source+target, from?, to? }, { apiKey }) | Paid | Daily series since 1994 |
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
rates/nbm.csv)https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/nbm/latest.jsonMIT
| KWD | MDL | reference | 57.7756 |
| KZT | MDL | reference | 0.03975 |
| MKD | MDL | reference | 0.32735 |
| MYR | MDL | reference | 4.4164 |
| NOK | MDL | reference | 1.9402 |
| NZD | MDL | reference | 10.1103 |
| PLN | MDL | reference | 4.5615 |
| RON | MDL | reference | 3.7744 |
| RSD | MDL | reference | 0.17142 |
| RUB | MDL | reference | 0.222 |
| SEK | MDL | reference | 1.8433 |
| TJS | MDL | reference | 1.9538 |
| TMT | MDL | reference | 5.1384 |
| TRY | MDL | reference | 0.3596 |
| UAH | MDL | reference | 0.3939 |
| USD | MDL | reference | 17.9853 |
| UZS | MDL | reference | 0.001499 |
| XDR | MDL | reference | 24.391 |