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