- Set environment variables:
-
DB_CONNECTION containing empty database address. Example: postgresql://localhost:5432/currency_service
-
ADMIN_USER containing login name for basic http authorization. Example: admin
-
ADMIN_PASSWORD containing password for basic http authorization. Example: 12345
- Run server:
python main.py
- Collect rates data from https://api-pub.bitfinex.com
- Show currencies (default page size is 5)
http://0.0.0.0:8080/currencies
- Show currencies with certain page size and/or page number
http://0.0.0.0:8080/currencies?page_size=2&page=3
- Show rate and average trading volume for last 10 days for given currency id