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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ecb_currency_exchange_rate-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a0455dd0c9c4465df5a335b63c19516961411de3082be9a0383477db1f2a1b9f
MD5 b284990386549c8bb6d1a44d03bd312f
BLAKE2b-256 125a95242ab2804851cb6d8266c3b1ac53cf93944ffa6e686adf913764fbc374

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ecb_currency_exchange_rate-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e0d9ff9cba1a44cf6ac4962a8724fd0ab8adc495d16e26d284b6fe7fcc8bbe73
MD5 b5bafeedf33648b97271a1ff4cdd3d18
BLAKE2b-256 51aaae42eb68bc1f3af9424d20b5e04b5ec0071be6b91369205a74e694a33e3c

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