fix: 止盈止损委托校验现价并在平仓后撤余单

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-24 14:35:20 +08:00
parent 397e9cd9d8
commit fe1b651900
4 changed files with 174 additions and 19 deletions
+3 -1
View File
@@ -442,7 +442,9 @@
.then(function (r) { return r.json(); })
.then(function (d) {
if (!d.ok) throw new Error(d.error || d.message || '委托失败');
alert(d.message || '委托已提交');
var msg = d.message || '委托已提交';
if (d.skipped && d.skipped.length) msg += '\n' + d.skipped.join('\n');
alert(msg);
pollPositions();
})
.catch(function (e) {