Compute real-time OHLC data from raw trades with Bytewax
This repository shows how to
- fetch real-time trade data from the Coinbase Websocket API
- transform trade data into OHLC data in real-time using Bytewax, and
- plot the OHLC data using Bokeh and Streamlit.
The final app is publicly deployed on Streamlit Cloud 👉🏽 click here
-
Install Python Poetry
curl -sSL https://install.python-poetry.org | python3 -
-
cd into the project folder and run
poetry install
-
activate the virtual env that you just created with
poetry shell
To run the Streamlit app locally simply do streamlit run src/frontend.py