fix: 持仓接口实时拉取并回写本地监控,修复有仓不显示

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-25 14:14:21 +08:00
parent 040436e9cc
commit 367f32dd82
5 changed files with 122 additions and 33 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ def start_position_worker(
r.get("stop_loss") is not None or r.get("take_profit") is not None
for r in rows
)
if connected and in_session and (rows or has_sl_tp):
if connected and in_session:
sleep_sec = max(1, interval)
elif connected:
sleep_sec = max(2, min(idle_interval, 3))