order_book

Real-Time Order Book Visualization

This Python project provides a real-time visualization of the order book for the BTCUSDT trading pair on the Binance exchange using WebSocket technology. It allows traders to monitor live market dynamics and make informed trading decisions.

It’s a part of Trading Framework project which you can get at https://quantjourney.substack.com/

Features

Classes

Order Book Screenshot

Usage

  1. Install the required dependencies: matplotlib, websocket-client, seaborn, sortedcontainers.
  2. Run the run_unit_test function with the desired unit test, e.g., run_unit_test(UnitTests.REALTIME_PLOT).
  3. The real-time order book visualization will be displayed, and the animation will be saved as a video file.

This project serves as a mid-step towards integrating with the CCXT (CryptoCurrency eXchange Trading) library, enabling traders to access various cryptocurrency exchanges and perform advanced analysis and trading strategies.

Order Book Screenshot Order Book Screenshot Demo Video

For a full demonstration of the real-time order book visualization, watch the video below:

Watch the Real-Time Order Book Visualization

License

This project is open-source and available under the MIT License.