From 39238185087499fe9c6365a8d295c26281435662 Mon Sep 17 00:00:00 2001 From: dekun Date: Mon, 20 Jul 2026 10:22:04 +0800 Subject: [PATCH] Add collapsible rule tips for perp-options and options-options hedge tabs. Co-authored-by: Cursor --- lib/common/static/instance_theme.css | 9 +++++++++ lib/hedge_plan/templates/hedge_plan_panel.html | 18 +++++++++++++++++- lib/instance/templates/embed_shell.html | 2 +- lib/instance/templates/index.html | 2 +- 4 files changed, 28 insertions(+), 3 deletions(-) diff --git a/lib/common/static/instance_theme.css b/lib/common/static/instance_theme.css index f1f538f..e02ed7f 100644 --- a/lib/common/static/instance_theme.css +++ b/lib/common/static/instance_theme.css @@ -3198,6 +3198,15 @@ html[data-theme="light"] .opt-be-dist-down { .hedge-plan-page-wrap .hp-head-card { margin-bottom: 12px; } +.hedge-plan-page-wrap .hp-rule-collapse { + margin: 0 0 12px; +} +.hedge-plan-page-wrap .hp-rule-collapse .tip-collapse-body p { + margin: 0 0 6px; +} +.hedge-plan-page-wrap .hp-rule-collapse .tip-collapse-body p:last-child { + margin-bottom: 0; +} .hedge-plan-page-wrap .hp-head-row { display: flex; flex-wrap: wrap; diff --git a/lib/hedge_plan/templates/hedge_plan_panel.html b/lib/hedge_plan/templates/hedge_plan_panel.html index 7020132..729a551 100644 --- a/lib/hedge_plan/templates/hedge_plan_panel.html +++ b/lib/hedge_plan/templates/hedge_plan_panel.html @@ -40,6 +40,14 @@
+
+ 永期对冲规则说明 +
+

账户:永续腿走合约账户(USDT);保险期权走期权账户(USDC)。两账户分开下单、资金不互通。

+

下单:先「计算」再「启动」。启动瞬间会再拉卖一并以 IOC 等完全成交;半腿失败可补开或「结束计划」(不平仓)。永期开仓需全仓计仓 + 对冲实盘门禁。

+

板块:左填永续开仓/止盈止损与张数;右选保险腿(做多配 Put、做空配 Call)。止盈后保险腿默认可持有;止损会联动平期权。

+
+

永续 · ETH 合约账户

@@ -118,6 +126,14 @@
- + diff --git a/lib/instance/templates/embed_shell.html b/lib/instance/templates/embed_shell.html index e2d680b..2bb1aa4 100644 --- a/lib/instance/templates/embed_shell.html +++ b/lib/instance/templates/embed_shell.html @@ -8,7 +8,7 @@ - + {{ pwa_app_name }} diff --git a/lib/instance/templates/index.html b/lib/instance/templates/index.html index 9aa9de8..ee17cda 100644 --- a/lib/instance/templates/index.html +++ b/lib/instance/templates/index.html @@ -18,7 +18,7 @@ {{ pwa_app_name }} - +