Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
currency-open-exchange
Advanced tools
Currency conversion
Install currency_open_exchange::
pip install currency-open-exchange
Then use it in a project::
import currency_open_exchange
In order to save exchange rates to your database, add currency_open_exchange
to your INSTALLED_APPS in your project's settings::
INSTALLED_APPS = (
...
'currency_open_exchange',
...
)
Open an account at https://openexchangerates.org/ if you don't have one already. Then, add this to your project's settings::
'EXCHANGE_APP_ID': 'YOUR APP ID HERE',
'EXCHANGE_BASE_CURRENCY': 'USD' (optional, only USD for free accounts)
For more information on the Open Exchange Rates API, see https://openexchangerates.org/
Once your backend is setup, get the latest exchange rates::
$ ./manage.py update_rates
Here's an example of converting 10 American Dollars to Chinese Renminbi:
.. code-block:: python
from currency_open_exchange.utils import convert
amount, currency = convert(10, "EUR", "BRL")
FAQs
Currency conversion
We found that currency-open-exchange 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.