Service for current and historical foreign exchange rates
git clone https://github.com/Denislite/ExRates.git
cd ExRates
virtualenv env
source env/bin/activate
pip install -r requirements.txt
uvicorn main:app --reload
Get the latest foreign exchange rates.
GET /latest
Get historical rates for any day since 1999.
GET /historical?date=2010-01-12
Choose your rate base. Default base is EUR.
GET /latest?base=USD
Get historical rates for a time period.
GET /historical?start_at=2018-01-01&end_at=2018-09-01
Get the historical rates against a different rate base.
GET /historical?start_at=2018-01-01&end_at=2018-09-01&base=USD
ExRates is based on FastAPI framework. SQLite is used as a database.
- Requests
- JSON
- The ElementTree XML API
- SQLAlchemy