Central bank exchange rate SDKs for Node.js — 124 npm packages

One zero-dependency npm package per central bank and tax authority: official published exchange rates (ECB, Fed, Bank of England, RBI and 120+ more) for Node.js and TypeScript, with history and daily series.

Every package below has the same four functions — getRate, getLatestRates, getRatesForDate, getHistory — so switching banks is a one-line import change. Each is also mirrored under the @allratestoday npm scope. Need live mid-market rates instead? Use @allratestoday/sdk.
npm install ecb-exchange-rate

import { getRate } from 'ecb-exchange-rate';
const pair = await getRate('USD', 'EUR', { apiKey: 'art_live_...' });
console.log(pair.rate, pair.rate_date); // the ECB's own published rate and date

All packages: zero dependencies, ESM + CommonJS, TypeScript types included, Node 18+ / Bun / Deno / edge runtimes. The latest published table is on the free plan; historical dates and series need a paid plan. Get a key at /register.

Europe 22

boe-exchange-rate Bank of England United Kingdom · GBP cbr-exchange-rate Bank of Russia Russia · RUB czech-national-bank-exchange-rate Czech National Bank Czech Republic · CZK ecb-exchange-rate European Central Bank Eurozone · EUR nbp-exchange-rate Narodowy Bank Polski Poland · PLN norges-bank-exchange-rate Norges Bank Norway · NOK riksbank-exchange-rate Sveriges Riksbank Sweden · SEK cbbh-exchange-rate Central Bank of Bosnia and Herzegovina Bosnia and Herzegovina · BAM bnb-exchange-rate Bulgarian National Bank Bulgaria · EUR snb-exchange-rate Swiss National Bank Switzerland · CHF bnr-exchange-rate National Bank of Romania Romania · RON nbu-exchange-rate National Bank of Ukraine Ukraine · UAH bank-of-albania-exchange-rate Bank of Albania Albania · ALL bdi-exchange-rate Banca d'Italia Italy · EUR danmarks-nationalbank-exchange-rate Danmarks Nationalbank Denmark · DKK magyar-nemzeti-bank-exchange-rate Magyar Nemzeti Bank Hungary · HUF central-bank-of-iceland-exchange-rate Central Bank of Iceland Iceland · ISK national-bank-of-serbia-exchange-rate National Bank of Serbia Serbia · RSD nbrb-exchange-rate National Bank of the Republic of Belarus Belarus · BYN nbm-exchange-rate National Bank of Moldova Moldova · MDL nbrm-exchange-rate National Bank of North Macedonia North Macedonia · MKD bank-of-lithuania-exchange-rate Bank of Lithuania Lithuania · EUR

North America 3

fed-exchange-rate US Federal Reserve (H.10) United States · USD boc-exchange-rate Bank of Canada Canada · CAD banxico-exchange-rate Banco de México Mexico · MXN

Latin America & Caribbean 22

bcb-exchange-rate Banco Central do Brasil (PTAX) Brazil · BRL bcrp-exchange-rate Central Reserve Bank of Peru Peru · PEN bcra-exchange-rate Central Bank of Argentina Argentina · ARS bcrd-exchange-rate Banco Central de la República Dominicana Dominican Republic · DOP bcp-exchange-rate Banco Central del Paraguay Paraguay · PYG banguat-exchange-rate Banco de Guatemala Guatemala · GTQ colombia-trm-exchange-rate Superintendencia Financiera de Colombia (TRM) Colombia · COP central-bank-of-venezuela-exchange-rate Central Bank of Venezuela Venezuela · VES central-bank-of-chile-exchange-rate Central Bank of Chile Chile · CLP bcu-exchange-rate Central Bank of Uruguay Uruguay · UYU banco-central-de-bolivia-exchange-rate Banco Central de Bolivia Bolivia · BOB central-bank-of-suriname-exchange-rate Central Bank of Suriname Suriname · SRD bank-of-guyana-exchange-rate Bank of Guyana Guyana · GYD bccr-exchange-rate Banco Central de Costa Rica Costa Rica · CRC bank-of-jamaica-exchange-rate Bank of Jamaica Jamaica · JMD bcn-exchange-rate Banco Central de Nicaragua Nicaragua · NIO bch-exchange-rate Banco Central de Honduras Honduras · HNL cbtt-exchange-rate Central Bank of Trinidad and Tobago Trinidad and Tobago · TTD central-bank-of-barbados-exchange-rate Central Bank of Barbados Barbados · BBD brh-exchange-rate Banque de la République d'Haïti Haiti · HTG central-bank-of-belize-exchange-rate Central Bank of Belize Belize · BZD banco-central-de-cuba-exchange-rate Banco Central de Cuba Cuba · CUP

Asia & Pacific 34

pboc-exchange-rate People's Bank of China (CFETS) China · CNY rba-exchange-rate Reserve Bank of Australia Australia · AUD bank-indonesia-exchange-rate Bank Indonesia Indonesia · IDR rbi-exchange-rate Reserve Bank of India India · INR bnm-exchange-rate Bank Negara Malaysia Malaysia · MYR cbsl-exchange-rate Central Bank of Sri Lanka Sri Lanka · LKR cbar-exchange-rate Central Bank of Azerbaijan Azerbaijan · AZN boj-exchange-rate Bank of Japan Japan · JPY hkma-exchange-rate Hong Kong Monetary Authority Hong Kong · HKD rbnz-exchange-rate Reserve Bank of New Zealand New Zealand · NZD bok-exchange-rate Bank of Korea South Korea · KRW bsp-exchange-rate Bangko Sentral ng Pilipinas Philippines · PHP nbc-cambodia-exchange-rate National Bank of Cambodia Cambodia · KHR bank-of-mongolia-exchange-rate Bank of Mongolia Mongolia · MNT mas-exchange-rate Monetary Authority of Singapore Singapore · SGD nbk-exchange-rate National Bank of Kazakhstan Kazakhstan · KZT nbg-exchange-rate National Bank of Georgia Georgia · GEL cbu-exchange-rate Central Bank of Uzbekistan Uzbekistan · UZS sbp-exchange-rate State Bank of Pakistan Pakistan · PKR nrb-exchange-rate Nepal Rastra Bank Nepal · NPR bangladesh-bank-exchange-rate Bangladesh Bank Bangladesh · BDT cbm-exchange-rate Central Bank of Myanmar Myanmar · MMK taiwan-central-bank-exchange-rate Central Bank of the Republic of China (Taiwan) Taiwan · TWD bank-of-thailand-exchange-rate Bank of Thailand Thailand · THB amcm-exchange-rate Monetary Authority of Macao Macao · MOP sbv-exchange-rate State Bank of Vietnam Vietnam · VND bank-of-laos-exchange-rate Bank of the Lao PDR Laos · LAK cba-exchange-rate Central Bank of Armenia Armenia · AMD nbkr-exchange-rate National Bank of the Kyrgyz Republic Kyrgyzstan · KGS rma-bhutan-exchange-rate Royal Monetary Authority of Bhutan Bhutan · BTN national-bank-of-tajikistan-exchange-rate National Bank of Tajikistan Tajikistan · TJS reserve-bank-of-fiji-exchange-rate Reserve Bank of Fiji Fiji · FJD maldives-monetary-authority-exchange-rate Maldives Monetary Authority Maldives · MVR central-bank-of-turkmenistan-exchange-rate Central Bank of Turkmenistan Turkmenistan · TMT

Middle East 11

tcmb-exchange-rate Central Bank of Türkiye Türkiye · TRY cbk-exchange-rate Central Bank of Kuwait Kuwait · KWD cbb-exchange-rate Central Bank of Bahrain Bahrain · BHD bank-of-israel-exchange-rate Bank of Israel Israel · ILS cbuae-exchange-rate Central Bank of the UAE United Arab Emirates · AED cbj-exchange-rate Central Bank of Jordan Jordan · JOD cbo-exchange-rate Central Bank of Oman Oman · OMR palestine-monetary-authority-exchange-rate Palestine Monetary Authority Palestine · ILS sama-exchange-rate Saudi Central Bank (SAMA) Saudi Arabia · SAR qcb-exchange-rate Qatar Central Bank Qatar · QAR central-bank-of-iraq-exchange-rate Central Bank of Iraq Iraq · IQD

Africa 29

cbn-exchange-rate Central Bank of Nigeria Nigeria · NGN sarb-exchange-rate South African Reserve Bank South Africa · ZAR bank-of-ghana-exchange-rate Bank of Ghana Ghana · GHS cbe-exchange-rate Central Bank of Egypt Egypt · EGP bank-al-maghrib-exchange-rate Bank Al-Maghrib Morocco · MAD bank-of-algeria-exchange-rate Bank of Algeria Algeria · DZD bceao-exchange-rate Central Bank of West African States (BCEAO) West Africa (WAEMU) · XOF national-bank-of-ethiopia-exchange-rate National Bank of Ethiopia Ethiopia · ETB central-bank-of-kenya-exchange-rate Central Bank of Kenya Kenya · KES beac-exchange-rate Bank of Central African States (BEAC) Central Africa (CEMAC) · XAF bct-exchange-rate Central Bank of Tunisia Tunisia · TND national-bank-of-rwanda-exchange-rate National Bank of Rwanda Rwanda · RWF bna-exchange-rate National Bank of Angola Angola · AOA bank-of-tanzania-exchange-rate Bank of Tanzania Tanzania · TZS bou-exchange-rate Bank of Uganda Uganda · UGX bmu-exchange-rate Bank of Mauritius Mauritius · MUR bdm-exchange-rate Banco de Moçambique Mozambique · MZN bob-exchange-rate Bank of Botswana Botswana · BWP boz-exchange-rate Bank of Zambia Zambia · ZMW rbm-exchange-rate Reserve Bank of Malawi Malawi · MWK banque-centrale-du-congo-exchange-rate Banque Centrale du Congo DR Congo · CDF central-bank-of-libya-exchange-rate Central Bank of Libya Libya · LYD central-bank-of-the-gambia-exchange-rate Central Bank of The Gambia Gambia · GMD banque-centrale-de-mauritanie-exchange-rate Banque Centrale de Mauritanie Mauritania · MRU reserve-bank-of-zimbabwe-exchange-rate Reserve Bank of Zimbabwe Zimbabwe · ZWG bank-of-namibia-exchange-rate Bank of Namibia Namibia · NAD central-bank-of-madagascar-exchange-rate Central Bank of Madagascar (BFM) Madagascar · MGA bank-of-sierra-leone-exchange-rate Bank of Sierra Leone Sierra Leone · SLE bcstp-exchange-rate Banco Central de São Tomé e Príncipe São Tomé and Príncipe · STN

Tax authorities 3

Statutory rates published by tax bodies rather than central banks — the figures returns and customs declarations must use.

hmrc-exchange-rate HM Revenue & Customs United Kingdom · GBP bazg-exchange-rate Swiss Federal Office for Customs and Border Security Switzerland · CHF ustreasury-exchange-rate U.S. Department of the Treasury United States · USD

Not using Node.js?

The same endpoints are reachable from any language over REST — see each bank's page under Central Bank Exchange Rate API for curl examples, or use the general SDKs for Python, PHP, Go and Rust. AI agents can use the MCP server.