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
@@ -165,7 +165,7 @@ def fetch_closed_bar(
p,
db_path=db_path,
trading_mode=trading_mode,
prefer_ctp=True,
prefer_ctp=False,
)
bars = data.get("bars") or []
return last_closed_bar(bars, bar_period_minutes(p))