exchangeratesapi

Python wrapper on Exchange Rates API


Keywords
Exchange, Rates, Rest, API, exchange-rates, pypi, python, rest-api
License
Apache-2.0
Install
pip install exchangeratesapi==0.1.0

Documentation

pyexchangeratesapi

This is an unofficial Python wrapper for free ExchangeRatesAPI, which provides exchange rate lookups courtesy of the Central European Bank. It features a number of useful functions and can be installed easily using pip. Additionally wrapper is providing CLI interface.

Test PyPI version GitHub PyPI - Downloads

codecov Known Vulnerabilities CodeFactor

Installation

pip install exchangeratesapi

Python usage

from exchangeratesapi import rates

latest = rates.latest()
latest["base"]
latest["date"]

latest = rates.Rates()
latest.base
latest.date

history = rates.history(start_at="2020-01-01", end_at="2020-12-31", base="PLN")
history["base"]
history["start_at"]
history["end_at"]

history = rates.HistoryRates(start_at="2020-01-01", end_at="2020-12-31", base="PLN")
history.base
history.start_at
history.end_at