From d08982a89892d11666c83035f62486a9881c3316 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Tue, 10 Mar 2026 13:35:09 +0800 Subject: [PATCH] add logging for verifying price filter settings --- src/onchain/polymarket_wallet_activity_watcher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/onchain/polymarket_wallet_activity_watcher.py b/src/onchain/polymarket_wallet_activity_watcher.py index 11ff76f9..d9d1e00d 100644 --- a/src/onchain/polymarket_wallet_activity_watcher.py +++ b/src/onchain/polymarket_wallet_activity_watcher.py @@ -211,6 +211,7 @@ def _diff_positions( # 价格过滤:如果设置了价格区间,不符合的直接跳过 price = _safe_float(now_pos.get("avg_price")) if price < min_price or price > max_price: + logger.debug(f"skipped position due to price range limit: market={now_pos.get('title')} price={price}") continue old_pos = previous.get(key) @@ -378,7 +379,7 @@ def start_polymarket_wallet_activity_loop(bot: Any) -> Optional[threading.Thread logger.info( f"polymarket wallet activity watcher started users={len(users)} " - f"poll={poll_sec}s data_api={data_api_url} state_path={state_path}" + f"poll={poll_sec}s data_api={data_api_url} price_filter={min_price}-{max_price}" ) while True: