Add OrderBook class and WebSocket integration for market data streaming

This commit is contained in:
Nawaz Haider
2026-01-01 19:54:32 +06:00
parent e28202828e
commit 1035b69eb6
3 changed files with 316 additions and 0 deletions
+2
View File
@@ -1,6 +1,8 @@
LOG_FOLDER = "logs/"
GAMMA_API_URL = "https://gamma-api.polymarket.com"
POLYMARKET_HOST = "https://clob.polymarket.com"
POLYMARKET_WS_MARKET_URL = "wss://ws-subscriptions-clob.polymarket.com/ws/market"
CHAIN_ID = 137
REQUEST_TIMEOUT = 5
PROFIT_MARGIN = 0.02
TRADING_BPS_THRESHOLD = 50