Show ~5 option rows by default; hide available USDT in perp quote.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -202,7 +202,8 @@
|
||||
return m === "itm" || m === "atm";
|
||||
}
|
||||
|
||||
const PO_ATM_SIDE = 3;
|
||||
// 默认共约 5 档:平值 + 实值2 + 虚值2
|
||||
const PO_ATM_SIDE = 2;
|
||||
|
||||
function slicePoListByMoneyness(list) {
|
||||
if (state.poStrikeExpandAll || !list.length) return list;
|
||||
@@ -1245,10 +1246,9 @@
|
||||
ooIdx.textContent = "指数 " + fmt(mIdx, 2);
|
||||
}
|
||||
}
|
||||
// OKX 交易账户 USDT 共用,永续行情不单独显示「可用 USDT」
|
||||
const quoteHtml =
|
||||
"可用 <strong>" +
|
||||
fmt(d.available_usdt, 2) +
|
||||
"</strong> USDT · 卖一 " +
|
||||
"卖一 " +
|
||||
fmt(d.ask, 2) +
|
||||
" · 买一 " +
|
||||
fmt(d.bid, 2) +
|
||||
@@ -1562,7 +1562,7 @@
|
||||
hintTr.innerHTML =
|
||||
'<td colspan="' +
|
||||
cols +
|
||||
'" class="muted opt-strike-hint">默认显示平值 + 实值3档 + 虚值3档 · 勾选「展开全部」查看该到期更多行权价</td>';
|
||||
'" class="muted opt-strike-hint">默认显示约 5 档(平值 + 实值2 + 虚值2) · 勾选「展开全部」查看该到期更多行权价</td>';
|
||||
tbody.appendChild(hintTr);
|
||||
}
|
||||
tbody.querySelectorAll(".hp-pick").forEach(function (btn) {
|
||||
|
||||
Reference in New Issue
Block a user