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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user