Skip to content

Denislite/ExRates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1

ExRates

Service for current and historical foreign exchange rates

Installation

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

Usage

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

Stack

ExRates is based on FastAPI framework. SQLite is used as a database.

Libraries used:

  • Requests
  • JSON
  • The ElementTree XML API
  • SQLAlchemy

Releases

No releases published

Packages

No packages published

Languages