Table of Contents
We're a trading company and we love cryptocurrencies. We want to give feedback to our users about the value of their portfolios and for that we need to know the price of each cryptocurrency at any given time. For this we have developed a rest api that will be consumed by different applications, webs and mobiles.
This is an example of how to list things you need to use the software and how to install them.
- create a virtualenv
python3 -m venv currencies-env
- load virtualenv
source currencies-env/bin/activate
- clone this repo
git clone [email protected]:sanjmen/currencies
- change to repo
cd currencies
- install requirements
pip install -r requirements.txt
- migrate database
./manage.py migrate
- run server
./manage.py runserver
- in other terminal run celery
celery -A apps.taskapp worker -B -l INFO
-
You can browse the api with the browser
- open a browser at http://127.0.0.1:8000/api/v1/
- then you could navigate to markets and klines
-
You can consume it with curl or using your favourite http client