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:
dekun
2026-06-29 09:21:27 +08:00
parent b02c9d6ca0
commit 45ae57ed43
4 changed files with 10 additions and 3 deletions
+6 -1
View File
@@ -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 = '';