Total row for telegram "/status table" command

fixes
This commit is contained in:
Eugene Schava
2021-05-17 16:22:48 +03:00
parent 3ad8fa2f38
commit 459fae6d80
2 changed files with 3 additions and 2 deletions

View File

@@ -244,7 +244,8 @@ class RPC:
)
if fiat_profit and not isnan(fiat_profit):
profit_str += f" ({fiat_profit:.2f})"
fiat_profit_sum = fiat_profit if isnan(fiat_profit_sum) else fiat_profit_sum + fiat_profit
fiat_profit_sum = fiat_profit if isnan(fiat_profit_sum) \
else fiat_profit_sum + fiat_profit
trades_list.append([
trade.id,
trade.pair + ('*' if (trade.open_order_id is not None