We integrate real-time updates from a websocket into plotly dash. We stream real-time cryptocurrency price data from Binance and save down the aggregated trades to an sqlite3 database, which is then queried by our dashboard and updates displayed every 200ms.
We show how to smoothly animate and update a graph without having to re-draw it.
⭐ Code:
github.com/ChadThackray/dash-websockets-2022
Timestamps:
00:00 - Introduction / Project overview
03:12 - Backend / Database using Sqlite3
25:03 - Frontend / Charting using Plotly Dash
コメント