From 2e2d5ddda07d43cc0f7e601a7e676512e8b9a68d Mon Sep 17 00:00:00 2001 From: dekun Date: Thu, 20 Aug 2026 17:28:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DOKX=E9=A1=B6=E6=A0=8F500?= =?UTF-8?q?=EF=BC=9A=E5=8E=BB=E6=8E=89=E4=B8=8Eembed=5Fcontext=5Fextras?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E7=9A=84options=5Ffunding=5Flabel=E6=B3=A8?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- crypto_monitor_okx/app.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crypto_monitor_okx/app.py b/crypto_monitor_okx/app.py index 03f8f31..e19e424 100644 --- a/crypto_monitor_okx/app.py +++ b/crypto_monitor_okx/app.py @@ -6608,12 +6608,10 @@ def render_main_page(page="trade", embed_mode=None): from lib.instance.instance_embed_context_lib import ( embed_render_plan, minimal_stats_bundle, - options_funding_label, profit_loss_ratio_from_trades, show_perp_funds_enabled, total_funds_usdt, trade_records_summary, - trading_account_label, ) plan = embed_render_plan(page, embed_mode) @@ -6880,8 +6878,7 @@ def render_main_page(page="trade", embed_mode=None): journal_chart_default_anchor=JOURNAL_CHART_DEFAULT_ANCHOR, key_rule_ctx=key_rule_ctx, funds_fmt=format_funds_u, - options_funding_label=options_funding_label, - trading_account_label=trading_account_label, + # options_funding_label / trading_account_label 由 embed_context_extras 注入,勿重复写进 dict exchange_display=EXCHANGE_DISPLAY_NAME, options_enabled=OKX_OPTIONS_ENABLED, show_perp_funds=_show_perp_funds or (options_margin_mode == "coin"),