Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easy_exchange_rates-0.2.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

easy_exchange_rates-0.2.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file easy_exchange_rates-0.2.0.tar.gz.

File metadata

  • Download URL: easy_exchange_rates-0.2.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for easy_exchange_rates-0.2.0.tar.gz
Algorithm Hash digest
SHA256 30d1e20f5c75c8303ba46e3cdcd18ba9b6827b99c31a0c08877b4898ee6f89b7
MD5 d7b0b23337bb2aa8d3144f93dd5d5395
BLAKE2b-256 dafeac239b8bb92391bb7ebdc2e4eefb5eddb5c143df298ce0d555b95f862ba8

See more details on using hashes here.

File details

Details for the file easy_exchange_rates-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for easy_exchange_rates-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99ee5ded14ae53ba03c0b33606cd5799da9b229c25c51fb1a1295de36529815d
MD5 8a1764f7560b2dc2a5124d68f1b54a51
BLAKE2b-256 2fb2c52352d2ab38991b820c59251928af2f36d0cc34c719bc237991d5d3e220

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page