修复OKX顶栏500:去掉与embed_context_extras重复的options_funding_label注入
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -6608,12 +6608,10 @@ def render_main_page(page="trade", embed_mode=None):
|
|||||||
from lib.instance.instance_embed_context_lib import (
|
from lib.instance.instance_embed_context_lib import (
|
||||||
embed_render_plan,
|
embed_render_plan,
|
||||||
minimal_stats_bundle,
|
minimal_stats_bundle,
|
||||||
options_funding_label,
|
|
||||||
profit_loss_ratio_from_trades,
|
profit_loss_ratio_from_trades,
|
||||||
show_perp_funds_enabled,
|
show_perp_funds_enabled,
|
||||||
total_funds_usdt,
|
total_funds_usdt,
|
||||||
trade_records_summary,
|
trade_records_summary,
|
||||||
trading_account_label,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
plan = embed_render_plan(page, embed_mode)
|
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,
|
journal_chart_default_anchor=JOURNAL_CHART_DEFAULT_ANCHOR,
|
||||||
key_rule_ctx=key_rule_ctx,
|
key_rule_ctx=key_rule_ctx,
|
||||||
funds_fmt=format_funds_u,
|
funds_fmt=format_funds_u,
|
||||||
options_funding_label=options_funding_label,
|
# options_funding_label / trading_account_label 由 embed_context_extras 注入,勿重复写进 dict
|
||||||
trading_account_label=trading_account_label,
|
|
||||||
exchange_display=EXCHANGE_DISPLAY_NAME,
|
exchange_display=EXCHANGE_DISPLAY_NAME,
|
||||||
options_enabled=OKX_OPTIONS_ENABLED,
|
options_enabled=OKX_OPTIONS_ENABLED,
|
||||||
show_perp_funds=_show_perp_funds or (options_margin_mode == "coin"),
|
show_perp_funds=_show_perp_funds or (options_margin_mode == "coin"),
|
||||||
|
|||||||
Reference in New Issue
Block a user