Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

easy-exchange-rates

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-exchange-rates

Easy way to get currency exchange data from https://data.ecb.europa.eu/ to a pandas dataframe.

  • 0.2.0
  • PyPI
  • Socket score

Maintainers
1

Easy Exchange Rates

PyPI package version number Actions Status License

A python package for retrieving currency exchange data from https://data.ecb.europa.eu/ to a pandas dataframe.

Usage

from easy_exchange_rates import API
api = API()
df = api.get_exchange_rates(
  base_currency="EUR", 
  start_date="2024-03-12",
  end_date="2024-04-21",
  targets=["USD","CAD"]
)
print(df.head(5))
>>>
	        CAD	    USD
TIME_PERIOD		
2024-03-12	1.4739	1.0916
2024-03-13	1.4756	1.0939
2024-03-14	1.4725	1.0925
2024-03-15	1.4731	1.0892
2024-03-18	1.4745	1.0892

Testing

python3 -m unittest discover -s tests

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc