
Security News
Scaling Socket from Zero to 10,000+ Organizations
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.
ecb-euro-exchange-rates
Advanced tools
Retrieve Euro foreign exchange reference rates from the European Central Bank
Retrieve Euro foreign exchange reference rates from an API provided by the European Central Bank. This module is intended to run on the server via Node.js, not in the browser.
The API provides exchange rates updated daily for the following currencies:
$ yarn add ecb-euro-exchange-rates
TS typings are available and you’ll get auto-completion for the supported currencies.
import * as exchangeRates from 'ecb-euro-exchange-rates';
const result = await exchangeRates.fetch();
console.log('Last update: ' + result.time);
console.log('USD: ' + result.rates.USD);
Historic rates are available via fetchHistoric90d (fetches previous 90 days) and fetchHistoric (fetches all rates back to 1999).
Use Volta.
Install NPM dependencies with yarn.
To execute the tests, run yarn test.
For the best development experience, make sure that your editor supports ESLint and EditorConfig.
Linting of code and commit message happens on commit via Husky.
Commit all changes and run the following:
$ npm login
$ yarn version --<update_type>
$ npm publish
… where <update_type> is one of patch, minor, or major. This will update the package.json, and create a tagged Git commit with the version number.
Pull requests are very welcome. Feel free to discuss bugs or new features by opening a new issue.
Copyright Philipp Katz, LineUpr GmbH, 2018 – 2025
[4.0.1] – 2025-10-09
FAQs
Retrieve Euro foreign exchange reference rates from the European Central Bank
The npm package ecb-euro-exchange-rates receives a total of 5,156 weekly downloads. As such, ecb-euro-exchange-rates popularity was classified as popular.
We found that ecb-euro-exchange-rates demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.

Research
Socket Threat Research maps a rare inside look at OtterCookie’s npm-Vercel-GitHub chain, adding 197 malicious packages and evidence of North Korean operators.

Research
Socket researchers identified a malicious Chrome extension that manipulates Raydium swaps to inject an undisclosed SOL transfer, quietly routing fees to an attacker wallet.