Add OKX hedge-plan P0: env group, preview page, and PnL scenario math.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-14 11:00:15 +08:00
parent d27ccbea8f
commit 1fa98425e7
18 changed files with 2232 additions and 1 deletions
@@ -15,6 +15,7 @@ DEFAULT_INSTANCE_DISPLAY: dict[str, bool] = {
"show_nav_risk_policy": True,
"show_nav_env_config": True,
"show_nav_options": True,
"show_nav_hedge_plan": True,
"show_settings_transfer": True,
"show_settings_export": True,
"show_settings_password": True,
@@ -30,6 +31,7 @@ DISPLAY_LABELS: dict[str, str] = {
"show_nav_risk_policy": "风控说明",
"show_nav_env_config": "env配置",
"show_nav_options": "期权",
"show_nav_hedge_plan": "对冲计划",
"show_settings_transfer": "资金划转",
"show_settings_export": "数据导出",
"show_settings_password": "账户密码修改",
@@ -45,6 +47,7 @@ NAV_TAB_ALLOWED: dict[str, str] = {
"risk_policy": "show_nav_risk_policy",
"env_config": "show_nav_env_config",
"options": "show_nav_options",
"hedge_plan": "show_nav_hedge_plan",
}
@@ -104,6 +107,7 @@ def display_meta_for_ui() -> list[dict[str, Any]]:
"show_nav_risk_policy",
"show_nav_env_config",
"show_nav_options",
"show_nav_hedge_plan",
]
settings_keys = [
"show_settings_transfer",