Hide unused risk-policy nav and options-account env for hedge-only.
Gate system-settings options panels on STANDALONE_OPTIONS_UI so settings no longer 500 without the options trading module. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Vendored
+10
-2
@@ -258,7 +258,13 @@ _HEDGE_COMMON_FIELDS: list[tuple[str, str, str]] = [
|
||||
(
|
||||
"HEDGE_PLAN_BUDGET_BUFFER",
|
||||
"对冲预算缓冲比例",
|
||||
"默认 0.95;仅对冲计划;与期权页 OKX_OPTIONS_BUDGET_BUFFER 独立",
|
||||
"默认 0.95;仅对冲计划",
|
||||
),
|
||||
("OKX_OPTIONS_DEFAULT_UNDERLY", "默认标的", "如 ETH;对冲页期权链默认标的"),
|
||||
(
|
||||
"OKX_OPTIONS_CHAIN_MAX_DTE_DAYS",
|
||||
"期权链展示天数",
|
||||
"默认 14;对冲页到期日只出现该天数内的合约",
|
||||
),
|
||||
(
|
||||
"HEDGE_PLAN_MANUAL_COMPLETE_ON_PARTIAL",
|
||||
@@ -495,7 +501,9 @@ def ui_sections_for_exchange(
|
||||
if not m:
|
||||
m = _okx_mode_for_env_ui()
|
||||
sections.append(_MODE_SECTION)
|
||||
sections.append({"title": "期权账户", "fields": _options_fields_for_mode(m)})
|
||||
# 单独期权模式才展示「期权账户」;对冲模式相关项已并入下方对冲分区
|
||||
if m == "options":
|
||||
sections.append({"title": "期权账户", "fields": _options_fields_for_mode(m)})
|
||||
hedge_fields = _hedge_fields_for_mode(m)
|
||||
if hedge_fields:
|
||||
title = "对冲计划·永期" if m == "perp_options" else "对冲计划·期期"
|
||||
|
||||
Reference in New Issue
Block a user