rl cob subscription model

This commit is contained in:
Dobromir Popov
2025-06-24 19:07:42 +03:00
parent 6702a490dd
commit 97f7f54c30
6 changed files with 405 additions and 43 deletions

View File

@ -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: