rl cob subscription model
This commit is contained in:
@ -643,8 +643,8 @@ class MultiExchangeCOBProvider:
|
||||
|
||||
self.exchange_update_counts[exchange_name] += 1
|
||||
|
||||
# Log every 100th update
|
||||
if self.exchange_update_counts[exchange_name] % 100 == 0:
|
||||
# Log every 1000th update
|
||||
if self.exchange_update_counts[exchange_name] % 1000 == 0:
|
||||
logger.info(f"Processed {self.exchange_update_counts[exchange_name]} Binance updates for {symbol}")
|
||||
|
||||
except Exception as e:
|
||||
@ -727,8 +727,8 @@ class MultiExchangeCOBProvider:
|
||||
|
||||
await self._add_trade_to_svp(symbol, trade)
|
||||
|
||||
# Log every 100th trade
|
||||
if len(self.session_trades[symbol]) % 100 == 0:
|
||||
# Log every 1000th trade
|
||||
if len(self.session_trades[symbol]) % 1000 == 0:
|
||||
logger.info(f"Tracked {len(self.session_trades[symbol])} trades for {symbol}")
|
||||
|
||||
except Exception as e:
|
||||
|
Reference in New Issue
Block a user