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.3.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.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ecb_currency_exchange_rate-0.1.3.tar.gz
Algorithm Hash digest
SHA256 603dd8789f10f334e6f231ed28cfbe10dbb070e55408bf5c38ea8d5ad4ed59c5
MD5 4a47962299a46740171cc8c7dfa7a3a5
BLAKE2b-256 e1c9b6cdf834d52ffe5d132c1b9bd28339182552e7158e586cc03b5f293ca139

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ecb_currency_exchange_rate-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cdb53cdf8d6f5b8fd756c7d9ef0967944e178848b35d09f4faca59d002143bdf
MD5 1b75672ce164ad23a63161d02baf99c9
BLAKE2b-256 ca31b12d31146bc6be67b0dd6f73f06066a7c0de3985e9807381e5a27dce4302

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