Skip to content

ChatGPT said: This project builds a high-performance trade simulator using real-time Level 2 orderbook data from OKX. It estimates transaction costs like slippage, fees, and market impact, and presents them through a low-latency, accurate, and interactive UI for real-time trading analysis.

Notifications You must be signed in to change notification settings

QamarSayyad33/Trade-Simulator

Repository files navigation

This project develops a high-performance trade simulator leveraging real-time Level 2 orderbook data from the OKX cryptocurrency exchange. The simulator processes streaming market data, estimates transaction costs including slippage, fees, and market impact, and displays these through an interactive user interface optimized for low latency and accuracy.

Problem Statement Cryptocurrency trading incurs costs and risks due to slippage, fees, and market impact, which traders must estimate to make informed decisions. This assignment requires building a system that consumes OKX’s real-time L2 orderbook WebSocket feed and applies quantitative models to dynamically estimate these costs while maintaining efficient processing and UI responsiveness.

Tools and Technologies • Programming Language: Python • WebSocket: websockets with asyncio for asynchronous data streaming • UI Framework: Streamlit • Data Processing: Pandas, NumPy • Modelling: scikit-learn, statsmodels • Logging: Python logging module • Data Formats: JSON parsing • Visualization: Matplotlib, Plotly

Screenshot 2025-05-17 102408

Screenshot 2025-05-17 105103

Screenshot 2025-05-17 105113

Screenshot 2025-05-17 105126

Screenshot 2025-05-17 105354

Screenshot 2025-05-17 090127

About

ChatGPT said: This project builds a high-performance trade simulator using real-time Level 2 orderbook data from OKX. It estimates transaction costs like slippage, fees, and market impact, and presents them through a low-latency, accurate, and interactive UI for real-time trading analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published