Skip to main content

Fetch and process historical daily currency exchange rate from the ECB

Project description

ECB Exchange Rates

A Python package to fetches the exchange rate for a given date, from currency, and to currency.

This package uses daily exchange rate published by ECB. ECB page for Euro foreign exchange reference rates

The ECB exchange rate data does not include weekends. If the date falls on a weekend or holiday, it uses the last available rate.

Installation

pip install ecb-currency-exchange-rate

Usage

from ecb_rates import ecb_rates

rate = ecb_rates.get_exchange_rate("2025-03-31", "EUR", "USD")
print(rate)

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

ecb_currency_exchange_rate-0.1.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ecb_currency_exchange_rate-0.1.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file ecb_currency_exchange_rate-0.1.1.tar.gz.

File metadata

File hashes

Hashes for ecb_currency_exchange_rate-0.1.1.tar.gz
Algorithm Hash digest
SHA256 867e9c731d7162bcefd31c5cc0d1143dc1ecdded19d9751d514f3edcee8d6951
MD5 3b059f24ab64645726bb4a81693b511a
BLAKE2b-256 e5831061de73a9a3b58960617f7ebd850f8a3aa521bb7b6876f6f37a965d28d7

See more details on using hashes here.

File details

Details for the file ecb_currency_exchange_rate-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ecb_currency_exchange_rate-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39399147d9f5a09c30d0923b379c4320f57f46ad38e78efc5a322f80e2d7792e
MD5 af5c427ad7a9498f49cf21a1e7d36c79
BLAKE2b-256 833358c4786d6f66d0e39a0c83dab8ccb41dc4c8fee5f3b3ebf14e11207a689d

See more details on using hashes here.

Supported by

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