umbertov / realtime_binance_plot

Gets high resolution price data from binance using unicorn_binance_websocket_api, and plots it using matplotlib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(optional) create virutalenv

python -m venv my_livedata_env
source my_livedata_env/activate
python --version
which python
which pip

Install requirements

pip install -r requirements.txt

Start the script that collects data in background

python livedata.py <PATH TO DATABASE> the database is created if it does not exist.

Plot the live data

python animate.py <PATH TO DATABASE> <LOOKBACK MINUTES>

Figure_1

About

Gets high resolution price data from binance using unicorn_binance_websocket_api, and plots it using matplotlib


Languages

Language:Python 100.0%