The scope of this tool is providing useful order book signals from Binance order book, by:
- reading symbol order book repeatedly
- saving aggregated price levels
- displaying data into a webpage using charts
Note: each symbol scan depth is limited by Binance API of last 5000 bids & asks
Docker
Docker image is made of:
- PostgreSql database (official image)
- Redis server (official image)
- pgAdmin4 (official image)
- Application
In production run it in front of nginx reverse proxy
- Export required environment variables
export=DJANGO_SECRET_KEY=
export=POSTGRES_PASSWORD=
export=PGADMIN_DEFAULT_EMAIL
export=PGADMIN_DEFAULT_PASSWORD=
- Build and run
# Build (optional)
bash run.sh
# Run
docker compose exec web python babsproj/manage.py qcluster
- First time run, populate symbols list and schedule weekly update
docker compose exec web python babsproj/babs/bootstrap.py schedule-symbols