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 -1
View File
@@ -8,6 +8,7 @@ import threading
import websocket
from enum import Enum
from config import POLYMARKET_WS_MARKET_URL, TRADING_BPS_THRESHOLD
from utils.clob_client import get_client
logger = logging.getLogger(__name__)
@@ -24,7 +25,7 @@ class OrderBook:
self.down_token_id = down_token_id
self.slug = slug
self.ws_url = POLYMARKET_WS_MARKET_URL
self.client = None
self.client = get_client()
self.orderbook = {
"best_bid": 0.0,