Make hedge the default home and drop unused product-surface entries.

Put永期/期期对冲 first in nav, default embed tab to hedge_plan, and remove risk-policy/options-account UI instead of only hiding them.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-14 18:51:57 +08:00
parent cfecbcfbb5
commit d40a0d25be
8 changed files with 49 additions and 61 deletions
+8 -2
View File
@@ -501,8 +501,14 @@ def ui_sections_for_exchange(
if not m:
m = _okx_mode_for_env_ui()
sections.append(_MODE_SECTION)
# 单独期权模式才展示「期权账户」;对冲模式相关项已并入下方对冲分区
if m == "options":
# 本仓默认无「期权账户」;仅紧急打开 STANDALONE_OPTIONS_UI 且单独期权模式才展示
try:
from lib.hedge_plan.okx_trade_mode_lib import standalone_options_ui_enabled
_show_opt_acct = standalone_options_ui_enabled() and m == "options"
except Exception:
_show_opt_acct = False
if _show_opt_acct:
sections.append({"title": "期权账户", "fields": _options_fields_for_mode(m)})
hedge_fields = _hedge_fields_for_mode(m)
if hedge_fields: