顶栏实时盈亏只显示U;交易账户USDT/ETH多行展示

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-20 18:05:42 +08:00
parent 8b5080bdda
commit 467f4f092f
6 changed files with 48 additions and 43 deletions
+3 -2
View File
@@ -139,7 +139,7 @@ def trading_account_label(
) -> str:
"""交易账户顶栏文案.
币本位:USDT / ETH / BTC(有余额才带上,不显示其它币种).
币本位:USDT / ETH / BTC 多行(有余额才带上,不显示其它币种).
其它模式:xx.xxU.
"""
try:
@@ -167,7 +167,8 @@ def trading_account_label(
btc_txt = _fmt_coin_amount(btc, min_amt=1e-7)
if btc_txt is not None:
parts.append(f"{btc_txt} BTC")
return " / ".join(parts) if parts else ""
# 顶栏多行:USDT / ETH 各占一行
return "\n".join(parts) if parts else ""
def total_funds_usdt(