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