Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 866 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 866 Bytes

SimpleLOBStream

Installation

Use the package manager pip to install.

# set python version to 3.8.0 or 3.8.*, or use something like conda.
pyenv local 3.8.0

# install packages in a virtualenv/conda.
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Starting redis

# start redis server, required for the plotly dashboard.
brew install redis
redis-server

Start OrderBook stream and dashboard

# start streaming order book data.
python main.py

# start the dashboard to display the spread/order book data by opening another command line window.
python monitor.py

Sample output from closing the OrderBook stream via KeyboardInterrupt.

output_console.png

Sample dashboard display

output_dashboard.png