Fix post-close auto sell: restore missing spot min-size helpers used by sim sell.
Sell was silently failing on ImportError; surface sell result in close alert notes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2940,7 +2940,11 @@
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({}),
|
||||
});
|
||||
alert(d.msg || "已平仓 #" + (d.plan_id || planId));
|
||||
var tip = d.msg || "已平仓 #" + (d.plan_id || planId);
|
||||
if (Array.isArray(d.notes) && d.notes.length) {
|
||||
tip += "\n" + d.notes.join("\n");
|
||||
}
|
||||
alert(tip);
|
||||
void loadLivePositions();
|
||||
void loadActivePlans();
|
||||
void loadHistory();
|
||||
|
||||
Reference in New Issue
Block a user