COB info restored, better COB heatmap, restore kill processes

This commit is contained in:
Dobromir Popov
2025-08-09 00:58:36 +03:00
parent 71ba37ccc2
commit 87193f3d6f
6 changed files with 152 additions and 89 deletions

View File

@ -430,17 +430,9 @@ class EnhancedCOBWebSocket:
# 3. ticker - 24hr ticker statistics (includes volume)
# 4. aggTrade - Aggregated trade data for volume analysis
# Configure kline stream with timezone offset if specified
if self.timezone_offset:
kline_stream = f"{ws_symbol}@kline_1s@{self.timezone_offset}"
logger.info(f"Using timezone offset {self.timezone_offset} for kline stream")
else:
kline_stream = f"{ws_symbol}@kline_1s"
logger.info("Using UTC timezone for kline stream")
# Build only supported, critical streams for stability (exclude kline_1s which may be unsupported)
streams = [
f"{ws_symbol}@depth@{self.update_speed}", # Order book diff depth
kline_stream, # 1-second candlesticks (with timezone)
f"{ws_symbol}@ticker", # 24hr ticker with volume
f"{ws_symbol}@aggTrade" # Aggregated trades
]