中控条件开仓单:客户端本地监控穿越/偏离区并按本机规则开平仓。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-03 02:13:16 +08:00
parent 3577a4d2fd
commit 2eb6b28a39
8 changed files with 996 additions and 2 deletions
+13
View File
@@ -2301,6 +2301,18 @@
head.hidden = false;
}
function paintCondOrderLock(d) {
const el = document.getElementById("opt-cond-lock-banner");
if (!el) return;
if (d && d.cond_order_locked) {
const extra = d.cond_order_msg ? " · " + d.cond_order_msg : "";
el.textContent = "中控条件单占用中,禁止手动开仓" + extra;
el.style.display = "";
} else {
el.style.display = "none";
}
}
async function retrySpotSell() {
const btn = document.getElementById("opt-spot-sell-retry-btn");
const uly = (state.spotSellUnderlying || state.underlying || "ETH").toUpperCase();
@@ -2426,6 +2438,7 @@
const list = resolvePositionsList(d);
paintPositions(list);
paintSpotSellBanner(d, list);
paintCondOrderLock(d);
const fromPos = list.reduce(function (targets, p) {
if (!p) return targets;
if (p.target_index != null) {