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-rates

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ecb_currency_exchange_rate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5d06175a918b38b16b3c78a208e8446a04f12604092b9b761bd17996ad4be745
MD5 988c6747d34f97b4cac55ad4362c0308
BLAKE2b-256 6d18d24020d3d0b571cbf7978ce1d03c8810312ebe32c67d161f272815e47684

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ecb_currency_exchange_rate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db05caa0351640cc9611d4401c317834254427c18a849f42e8d429b0affaa9c2
MD5 bc06b62e83d2266071308ba705650350
BLAKE2b-256 faebb5545abc8a37deb5021b2e6d168ea4c4b3b737af2d90872a5eaa47481f1a

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