From 03dde1853d9be32fd117d253a769a8918da4e83c Mon Sep 17 00:00:00 2001 From: dekun Date: Wed, 7 Oct 2026 13:21:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4=E5=BC=BA?= =?UTF-8?q?=E5=B9=B3=E6=A8=A1=E6=9D=BF=E5=90=8E=20embed=20=E5=9B=A0=20Temp?= =?UTF-8?q?lateNotFound=20=E6=95=B4=E9=A1=B5=20500=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- lib/instance/instance_embed_lib.py | 5 +++-- lib/instance/templates/index.html | 13 ++----------- lib/instance/templates/instance_header_panel.html | 1 - 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/lib/instance/instance_embed_lib.py b/lib/instance/instance_embed_lib.py index 1bcc624..ceff27c 100644 --- a/lib/instance/instance_embed_lib.py +++ b/lib/instance/instance_embed_lib.py @@ -54,8 +54,9 @@ def order_rule_tips_template(exchange_key: str) -> str: def include_transfer_block(exchange_key: str) -> bool: - """三所 standalone / embed 壳均在顶栏展示划转区块.""" - return (exchange_key or "").strip().lower() in ORDER_RULE_TIPS_BY_EXCHANGE + """永续划转区块已下线.""" + del exchange_key + return False def ui_open_guard_enabled(exchange_key: str) -> bool: diff --git a/lib/instance/templates/index.html b/lib/instance/templates/index.html index ad27325..ba829e8 100644 --- a/lib/instance/templates/index.html +++ b/lib/instance/templates/index.html @@ -208,16 +208,8 @@ {% elif page == 'trade' %}
-
-

实盘下单监控

- {% if focus_order_id %} - 放大查看K线(100根) - {% else %} - 暂无持仓可放大 - {% endif %} -
- {% include order_rule_tips_tpl %} - {% include 'order_monitor_open_form.html' %} +

实盘下单监控

+

永续下单已下线,请使用「期权」页。

实时持仓

@@ -255,7 +247,6 @@ · --:--:-- {% endif %} - {% include 'force_close_order_badge.html' %} {{ '做多' if o.direction == 'long' else '做空' }}
diff --git a/lib/instance/templates/instance_header_panel.html b/lib/instance/templates/instance_header_panel.html index 3c7e72f..8a30354 100644 --- a/lib/instance/templates/instance_header_panel.html +++ b/lib/instance/templates/instance_header_panel.html @@ -28,7 +28,6 @@ {% if trade_policy.badge_text %} {{ trade_policy.badge_text }} {% endif %} - {% include 'force_close_header_badge.html' %} {{ risk_status.status_label|default('正常') }}
{% include 'instance_theme_toggle.html' %}