Make options target close gate configurable via env.

Support premium multiplier (coin default 1.05) or net-PnL USDT threshold with index conversion.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-25 09:00:39 +08:00
parent 0cb2167770
commit 37f787e6a9
8 changed files with 211 additions and 29 deletions
+1 -1
View File
@@ -832,7 +832,7 @@
const gate = preview.close_gate || {};
// 2× 只是目标平仓门控,本身不会自动平;手动买一平不拦截
if (preview.close_gate_blocked || (gate.ready === false && !gate.passed)) {
return "目标门控: " + (preview.close_gate_msg || gate.msg || "可回收需≥2×权利金并持续2分钟");
return "目标门控: " + (preview.close_gate_msg || gate.msg || "目标平仓门控未过");
}
return "";
}
+1 -1
View File
@@ -118,7 +118,7 @@
}
const gate = preview.close_gate || {};
if (preview.close_gate_blocked || (gate.ready === false && !gate.passed)) {
return "目标门控: " + (preview.close_gate_msg || gate.msg || "可回收需≥2×权利金并持续2分钟");
return "目标门控: " + (preview.close_gate_msg || gate.msg || "目标平仓门控未过");
}
return "";
}