@@ -185,6 +185,7 @@ def format_small_account_whole_share_bootstrap_notes(
185185 "account_overview_title" : "📌 策略账户概览" ,
186186 "equity" : "净值" ,
187187 "total_assets" : "总资产(策略标的+现金)" ,
188+ "total_assets_margin" : "总资产(策略净值)" ,
188189 "buying_power" : "可用现金" ,
189190 "buying_power_margin" : "购买力" ,
190191 "reserved_cash" : "预留现金" ,
@@ -353,6 +354,7 @@ def format_small_account_whole_share_bootstrap_notes(
353354 "account_overview_title" : "📌 Strategy Account" ,
354355 "equity" : "Equity" ,
355356 "total_assets" : "Total assets" ,
357+ "total_assets_margin" : "Total assets (strategy net liquidation)" ,
356358 "buying_power" : "Available cash" ,
357359 "buying_power_margin" : "Buying power" ,
358360 "reserved_cash" : "Reserved cash" ,
@@ -724,11 +726,15 @@ def _is_dashboard_account_metric_line(line: str, *, translator: Callable[..., st
724726 translator ("investable_cash" ),
725727 translator ("equity" ),
726728 "Total assets (strategy symbols + cash)" ,
729+ "Total assets (strategy symbols + cash, ex-margin)" ,
730+ "Total assets (strategy net liquidation)" ,
727731 "Buying power" ,
728732 "Reserved cash" ,
729733 "Investable cash" ,
730734 "Equity" ,
731735 "总资产(策略标的+现金)" ,
736+ "总资产(策略标的+现金,不含融资额度)" ,
737+ "总资产(策略净值)" ,
732738 "购买力" ,
733739 "预留现金" ,
734740 "可投资现金" ,
@@ -744,14 +750,15 @@ def _format_generated_dashboard_lines(
744750 translator : Callable [..., str ],
745751) -> list [str ]:
746752 lines = [translator ("account_overview_title" )]
753+ cash_only_execution = bool (execution .get ("cash_only_execution" , portfolio .get ("cash_only_execution" , True )))
747754 total_equity = _safe_float (portfolio .get ("total_equity" ))
748755 if total_equity is not None :
749- lines .append (f" - { translator ('total_assets' )} : { _format_money (total_equity )} " )
756+ total_assets_label = "total_assets" if cash_only_execution else "total_assets_margin"
757+ lines .append (f" - { translator (total_assets_label )} : { _format_money (total_equity )} " )
750758 buying_power = _safe_float (portfolio .get ("liquid_cash" ))
751759 if buying_power is None :
752760 buying_power = _safe_float (portfolio .get ("buying_power" ))
753761 if buying_power is not None :
754- cash_only_execution = bool (execution .get ("cash_only_execution" , portfolio .get ("cash_only_execution" , True )))
755762 buying_power_label = "buying_power" if cash_only_execution else "buying_power_margin"
756763 lines .append (f" - { translator (buying_power_label )} : { _format_money (buying_power )} " )
757764 reserved_cash = _safe_float (execution .get ("reserved_cash" ))
@@ -1224,8 +1231,6 @@ def render_cycle_summary(result: Mapping[str, Any], *, lang: str = "en") -> str:
12241231 lines .append (SEPARATOR )
12251232 lines .extend (dashboard_lines )
12261233 lines .append (SEPARATOR )
1227- lines .extend (_format_timing_lines (execution , translator = translator ))
1228- lines .extend (_format_signal_lines (execution , translator = translator ))
12291234 lines .extend (target_diff_lines )
12301235 lines .extend (
12311236 str (line ).strip ()
0 commit comments