diff --git a/lib/common/static/hedge_plan.js b/lib/common/static/hedge_plan.js index 7c1b339..16dfb8b 100644 --- a/lib/common/static/hedge_plan.js +++ b/lib/common/static/hedge_plan.js @@ -1452,7 +1452,15 @@ hint.innerHTML = '默认显示 Call/Put 各最近 3 档 · 勾选「显示全部」查看更多'; + '" class="muted opt-strike-hint">默认显示 Call/Put 各最近 3 档 · 点「显示全部」查看该到期更多行权价(若当前为「仅平值」会自动切到「平/虚」)'; + tbody.appendChild(hint); + } else if (state.ooStrikeExpandAll && state.ooMoneyFilter === "otm") { + const hint = document.createElement("tr"); + hint.className = "opt-strike-hint-row"; + hint.innerHTML = + '当前为「仅虚值」筛选 · 切到「平/虚」可看平值档'; tbody.appendChild(hint); } tbody.querySelectorAll(".hp-oo-pick").forEach(function (btn) { @@ -1974,6 +1982,11 @@ if ($("hp-oo-expand-all")) { $("hp-oo-expand-all").addEventListener("click", function () { state.ooStrikeExpandAll = !state.ooStrikeExpandAll; + // 「仅平值」时本来就只有 1~3 档,展开几乎无变化;展开时自动切到平/虚以便看到全部可选档 + if (state.ooStrikeExpandAll && state.ooMoneyFilter === "atm") { + state.ooMoneyFilter = "atm_otm"; + syncMoneyUI(); + } syncOoExpandUI(); renderTStrikes(); }); diff --git a/lib/common/static/options_panel.js b/lib/common/static/options_panel.js index 70b81f2..30e00f4 100644 --- a/lib/common/static/options_panel.js +++ b/lib/common/static/options_panel.js @@ -2219,6 +2219,11 @@ if (expandAllCb) { expandAllCb.addEventListener("change", function () { state.strikeExpandAll = !!expandAllCb.checked; + // 实值/虚值筛选下档位本来就少,展开几乎不变;勾选时切回「全部」才有意义 + if (state.strikeExpandAll && state.moneyFilter !== "all") { + state.moneyFilter = "all"; + syncMoneyFilterButtons(); + } renderStrikes(); }); } diff --git a/lib/hedge_plan/templates/hedge_plan_panel.html b/lib/hedge_plan/templates/hedge_plan_panel.html index 45f1e34..5d4a532 100644 --- a/lib/hedge_plan/templates/hedge_plan_panel.html +++ b/lib/hedge_plan/templates/hedge_plan_panel.html @@ -269,7 +269,7 @@ - +
@@ -406,4 +406,4 @@ - + diff --git a/lib/options/templates/options_panel.html b/lib/options/templates/options_panel.html index 4707dcc..c9546ca 100644 --- a/lib/options/templates/options_panel.html +++ b/lib/options/templates/options_panel.html @@ -21,7 +21,7 @@
  • 列表含卖一/买一;T 型仅卖一(买方开仓),中间为跨式双买测算。
  • 环境配置「链上仅显示有卖一」开启时,隐藏无真实卖一或深度不足 1 张的合约(估算价 ~ 亦不显示)。
  • 开仓只认真实卖一价且卖一深度≥1;无深度时面板显示参考标记价并禁用买入。
  • -
  • 链展示近 14 日到期;列表与 T 型默认平值 + 实值3档 + 虚值3档,勾选「展开全部」看全部行权价。
  • +
  • 链展示近 14 日到期;列表与 T 型默认平值 + 实值3档 + 虚值3档,勾选「展开全部」看全部行权价(若当前为实值/虚值筛选会自动切回「全部」)。
  • 「按可用余额打满」可用额度 = min(交易户可用 USDC, 单笔预算 {{ '%.2f'|format(options_trade_budget|default(10)|float) }}),再 × 预算缓冲 {{ '%.2f'|format(options_budget_buffer|default(0.95)|float) }} 算张数(env 可改)。
  • 平仓仅买一限价,详见说明文档。
  • @@ -324,4 +324,4 @@ - +