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

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

By Madhushan, Founder & Lead Developer ·

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.

International 1

imf-exchange-rate International Monetary Fund International · USD

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 35

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 hkab-exchange-rate Hong Kong Association of Banks (HKAB) Hong Kong · HKD

Middle East 12

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 central-bank-of-iran-exchange-rate Central Bank of Iran Iran · IRR

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 66

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 irs-exchange-rate Internal Revenue Service (yearly average rates) United States · USD sunat-exchange-rate SUNAT (Peru tax and customs authority) Peru · PEN cbic-exchange-rate Central Board of Indirect Taxes and Customs (CBIC) India · INR lkcustoms-exchange-rate Sri Lanka Customs Sri Lanka · LKR nbrbd-exchange-rate Bangladesh National Board of Revenue (customs rates) Bangladesh · BDT estvkursliste-exchange-rate Swiss Federal Tax Administration (ESTV Kursliste) Switzerland · CHF tollgengi-exchange-rate Iceland Revenue and Customs (Skatturinn) Iceland · ISK jocustoms-exchange-rate Jordan Customs Department Jordan · JOD tolletaten-exchange-rate Norwegian Customs (Tolletaten) Norway · NOK tullverket-exchange-rate Swedish Customs (Tullverket) Sweden · SEK thcustoms-exchange-rate Thai Customs Department Thailand · THB gdce-exchange-rate Cambodia General Department of Customs and Excise Cambodia · KHR ura-exchange-rate Uganda Revenue Authority Uganda · UGX kra-exchange-rate Kenya Revenue Authority (customs rates) Kenya · KES jpcustoms-exchange-rate Japan Customs Japan · JPY kcs-exchange-rate Korea Customs Service South Korea · KRW dofequiv-exchange-rate Mexico DOF tax equivalence table (Banxico) Mexico · MXN atpt-exchange-rate Portugal Tax and Customs Authority (AT) Portugal · EUR adecambi-exchange-rate Italy Revenue Agency (Agenzia delle Entrate) Italy · EUR gracustoms-exchange-rate Guyana Revenue Authority (customs rates) Guyana · GYD customsmk-exchange-rate North Macedonia Customs Administration North Macedonia · MKD customsbz-exchange-rate Belize Customs and Excise Belize · BZD carinars-exchange-rate Serbia Customs Administration Serbia · RSD douanesmg-exchange-rate Madagascar Customs (Douanes) Madagascar · MGA mramu-exchange-rate Mauritius Revenue Authority (Customs) Mauritius · MUR icumsgh-exchange-rate Ghana Revenue Authority Customs (ICUMS) Ghana · GHS siicl-exchange-rate SII (Chile tax authority) dólar observado Chile · CLP receitabr-exchange-rate Receita Federal do Brasil (rates for tax) Brazil · BRL sarsrex-exchange-rate SARS customs rates of exchange South Africa · ZAR sarsavg-exchange-rate SARS average exchange rates (income tax) South Africa · ZAR kurspajak-exchange-rate Indonesia Ministry of Finance (Kurs Pajak) Indonesia · IDR hkird-exchange-rate Hong Kong Inland Revenue Department (average rates) Hong Kong · HKD bmfat-exchange-rate Austrian Ministry of Finance (BMF) Austria · EUR bmfust-exchange-rate German Federal Ministry of Finance (VAT rates) Germany · EUR zollde-exchange-rate German Customs (Zoll) Germany · EUR douanefr-exchange-rate French Customs (DGDDI) France · EUR douaneslu-exchange-rate Luxembourg Customs and Excise Luxembourg · EUR tarbel-exchange-rate Belgian Customs (FPS Finance) Belgium · EUR abf-exchange-rate Australian Border Force Australia · AUD nzcustoms-exchange-rate New Zealand Customs Service New Zealand · NZD nzird-exchange-rate Inland Revenue (New Zealand) New Zealand · NZD dgii-exchange-rate DGII (Dominican Republic tax authority) Dominican Republic · DOP dgado-exchange-rate DGA (Dominican Republic customs) Dominican Republic · DOP cycustoms-exchange-rate Cyprus Department of Customs and Excise Cyprus · EUR arcamaria-exchange-rate ARCA Customs (Argentina) Argentina · ARS bnadivisa-exchange-rate Banco de la Nación Argentina (divisa rate for tax) Argentina · ARS bermudacustoms-exchange-rate Bermuda Customs Bermuda · BMD aduanacl-exchange-rate Servicio Nacional de Aduanas (Chile customs) Chile · CLP celnisprava-exchange-rate Czech Customs Administration Czech Republic · CZK gfrcz-exchange-rate Czech Tax Administration (yearly uniform rate) Czech Republic · CZK kaspl-exchange-rate Poland Ministry of Finance customs rates Poland · PLN cbsa-exchange-rate Canada Border Services Agency Canada · CAD cbp-exchange-rate U.S. Customs and Border Protection United States · USD eucustoms-exchange-rate EU customs exchange rates (euro area, UCC Art. 146) European Union · EUR hucustoms-exchange-rate Hungary customs exchange rates (UCC Art. 146) Hungary · HUF rocustoms-exchange-rate Romania customs exchange rates (UCC Art. 146) Romania · RON dkcustoms-exchange-rate Denmark customs exchange rates (UCC Art. 146) Denmark · DKK brcustoms-exchange-rate Brazil customs exchange rate (Siscomex, PTAX) Brazil · BRL gacc-exchange-rate General Administration of Customs of China (GACC) China · CNY dnit-exchange-rate DNIT (Paraguay tax and customs authority) Paraguay · PYG revenueie-exchange-rate Revenue Commissioners (Ireland customs rates) Ireland · EUR douanenl-exchange-rate Douane (Netherlands Customs) Netherlands · EUR inforeuro-exchange-rate European Commission (InforEuro) European Union · EUR

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.