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
+1 -1
View File
@@ -82,7 +82,7 @@ def calc_lots_by_amount(
if lots < 1:
return None, f"按固定金额 {budget:.0f} 元,当前止损距离下不足 1 手", info
if cap > 0:
margin_per_lot, _src = margin_one_lot(
margin_per_lot, _src, _spec = margin_one_lot(
ths_code, entry_f, direction=direction, trading_mode=trading_mode,
)
if margin_per_lot <= 0: