mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-17 05:11:15 +00:00
Fix Telegram balance command when fiat_display_currency is not set
This commit is contained in:
@@ -1227,10 +1227,13 @@ class Telegram(RPCHandler):
|
|||||||
total_stake = fmt_coin(
|
total_stake = fmt_coin(
|
||||||
result["total" if full_result else "total_bot"], result["stake"], False
|
result["total" if full_result else "total_bot"], result["stake"], False
|
||||||
)
|
)
|
||||||
|
fiat_estimated_value = (
|
||||||
|
f"\t`{result['symbol']}: {value}`{fiat_val}\n" if result["symbol"] else ""
|
||||||
|
)
|
||||||
output += (
|
output += (
|
||||||
f"\n*Estimated Value{' (Bot managed assets only)' if not full_result else ''}*:\n"
|
f"\n*Estimated Value{' (Bot managed assets only)' if not full_result else ''}*:\n"
|
||||||
f"\t`{result['stake']}: {total_stake}`{stake_improve}\n"
|
f"\t`{result['stake']}: {total_stake}`{stake_improve}\n"
|
||||||
f"\t`{result['symbol']}: {value}`{fiat_val}\n"
|
f"{fiat_estimated_value}"
|
||||||
)
|
)
|
||||||
await self._send_msg(
|
await self._send_msg(
|
||||||
output, reload_able=True, callback_path="update_balance", query=update.callback_query
|
output, reload_able=True, callback_path="update_balance", query=update.callback_query
|
||||||
|
|||||||
Reference in New Issue
Block a user