Build an app that will find the best exchange rates for Bitcoin (USD -> Bitcoin) from the following cryptocurrency exchanges:
It should have the following pages:
- The first page should display the rates and highlight the best one
- The second page should display the rates over time
- Fork/Clone
- Create and activate a virtualenv
- Install dependencies
- Create the db -
python create_db.py
- Grab data -
python data.py
- Run the app -
python app.py
and then navigate to - http://localhost:8080/data and you should see something like:
[
{
"exchange": "bitstamp",
"price": 1201.37,
"time": 1201.37
}
]
Kill the server once done.
$ sh run.sh
This will run data.py to collect data and then run the server in the background. Check http://localhost:8080/data to make sure it's working. You should also see got data
outputs in the terminal whenever data is collected.