顶栏实时盈亏只显示U;交易账户USDT/ETH多行展示
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user