Easy abstraction to get currency exchange data from https://exchangerate.host/ to a pandas dataframe
Project description
easy-exchange-rates
Usage
from easy_exchange_rates import API
api = API()
time_series = api.get_exchange_rates(
base_currency="EUR",
start_date="2021-01-01",
end_date="2021-08-13",
targets=["USD","CAD"]
)
data_frame = api.to_dataframe(time_series)
print(data_frame.head(5))
>>>
CAD USD
2021-01-01 1.549988 1.217582
2021-01-02 1.544791 1.213500
2021-01-03 1.557791 1.223409
2021-01-04 1.566076 1.225061
2021-01-05 1.558553 1.229681
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
Close
Hashes for easy_exchange_rates-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f55dfc122ee202d6e949d91546d4ea8e5e73fba0dd943c85bf6453876e693683 |
|
MD5 | 2286dac966f3586e60d0e35031658f9f |
|
BLAKE2b-256 | 0cb37c7eaf5f65060786200520be61a82eae5e62ab7487f751a96eff58488d3b |