实现OKX单笔期权币本位与USDT桥复利(中控只读,不改Gate)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-20 12:10:29 +08:00
parent dd8fbae0dd
commit 72c84bb993
20 changed files with 1377 additions and 21 deletions
+10 -1
View File
@@ -1266,7 +1266,16 @@
const openBtn = document.getElementById("opt-open-btn");
if (openBtn) {
openBtn.disabled = !canOpen || sz.ok === false;
openBtn.textContent = canOpen ? "限价买入 @ 卖一" : "暂无卖一深度,无法开仓";
const coinMode = (state.chain && state.chain.margin_mode === "coin") || (state.chain && state.chain.options_margin_mode === "coin");
const bud = state.chain && state.chain.coin_budget && state.chain.coin_budget.budget_usdt;
if (!canOpen) {
openBtn.textContent = "暂无卖一深度,无法开仓";
} else if (coinMode) {
openBtn.textContent =
bud != null ? "买币并开仓(预算 ≈ " + Number(bud).toFixed(2) + " USDT)" : "买币并开仓 @ 卖一";
} else {
openBtn.textContent = "限价买入 @ 卖一";
}
}
const msgEl = document.getElementById("opt-order-msg");
if (!d.ok) {