Skip to content

Commit 8f5763f

Browse files
committed
delete logs
1 parent 91e6de4 commit 8f5763f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vali_objects/utils/limit_order/limit_order_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -950,15 +950,15 @@ def _get_price_sources(self, trade_pair, now_ms):
950950
start_ms = now_ms - ValiConfig.LIMIT_ORDER_PRICE_BUFFER_MS
951951
price_sources = self.live_price_fetcher.get_ws_price_sources_in_window(trade_pair, start_ms, end_ms)
952952
if not price_sources:
953-
bt.logging.warning(f"[LIMIT_PS][{trade_pair.trade_pair_id}] {len(price_sources or [])} no ws price sources")
953+
# bt.logging.warning(f"[LIMIT_PS][{trade_pair.trade_pair_id}] {len(price_sources or [])} no ws price sources")
954954
return None
955955

956956
bid_ps_sorted = sorted(price_sources, key=lambda ps: ps.bid if ps.bid > 0 else ps.open, reverse=True)
957957
ask_ps_sorted = sorted(price_sources, key=lambda ps: ps.ask if ps.ask > 0 else ps.open)
958958
max_bid_ps, min_ask_ps = bid_ps_sorted[0], ask_ps_sorted[0]
959959

960960
if max_bid_ps.bid == 0 or min_ask_ps.ask == 0:
961-
bt.logging.warning(f"[LIMIT_PS][{trade_pair.trade_pair_id}] {len(price_sources)} no bid/ask price")
961+
# bt.logging.warning(f"[LIMIT_PS][{trade_pair.trade_pair_id}] {len(price_sources)} no bid/ask price")
962962
return None
963963

964964
# NOTE use aggressive limit order matching

0 commit comments

Comments
 (0)