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:
+6
-1
@@ -699,7 +699,12 @@
|
||||
stop_loss: sl,
|
||||
take_profit: tp
|
||||
})
|
||||
}).then(function (r) { return r.json(); }).then(function (data) {
|
||||
}).then(function (r) {
|
||||
return r.json().then(function (data) {
|
||||
if (!r.ok && data && !data.error) data.error = '请求失败 ' + r.status;
|
||||
return data;
|
||||
});
|
||||
}).then(function (data) {
|
||||
if (!data.ok) {
|
||||
if (isAmountMode()) {
|
||||
lotsCalc.value = '';
|
||||
|
||||
Reference in New Issue
Block a user