Refactor trading logic and client initialization; remove unused clob_client_and_order module

This commit is contained in:
Nawaz Haider
2026-01-02 12:40:25 +06:00
parent 73f1a2e249
commit d3b3a2fdb4
5 changed files with 87 additions and 46 deletions
+2
View File
@@ -2,6 +2,7 @@ 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"
POLYMARKET_WS_USER_URL = "wss://ws-subscriptions-clob.polymarket.com/ws/user"
CHAIN_ID = 137
REQUEST_TIMEOUT = 5
PROFIT_MARGIN = 0.02
@@ -9,3 +10,4 @@ TRADING_BPS_THRESHOLD = 50
MARKET_SESSION_SECONDS = 900
TIMEZONE = "US/Eastern"
MAX_TRADES = 1
PLACE_OPPOSITE_ORDER = True # Hedge orders