Fix lot preview crash and improve key monitor WeChat alerts.

Unpack margin_one_lot correctly for fixed-amount sizing, use exchange klines for breakout detection, and notify on pending auto orders.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-29 09:21:27 +08:00
parent b02c9d6ca0
commit 45ae57ed43
4 changed files with 10 additions and 3 deletions
+2
View File
@@ -3083,6 +3083,8 @@ def install_trading(app, *, login_required, require_nav, get_db, get_setting, se
schedule_ai_fn=schedule_ai_event_analysis,
db_path=DB_PATH,
)
else:
_notify(True, "委托已提交,待成交", entry=entry, sl=sl, tp=tp, lots=lots)
_push_position_snapshot_async(fast=False)
return True, "已下单" if filled else "委托已提交"
except Exception as exc: