fix: 止盈止损委托校验现价并在平仓后撤余单
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+3
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user