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:
dekun
2026-10-14 16:58:09 +08:00
parent d54bbdfcb3
commit be00991568
5 changed files with 83 additions and 8 deletions
+5 -1
View File
@@ -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();