Update telegram.py

This commit is contained in:
Kavinkumar 2022-03-10 08:58:22 +05:30 committed by GitHub
parent 33c2489ccb
commit 8d0dbc2eb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -284,7 +284,7 @@ class Telegram(RPCHandler):
msg['profit_extra'] = ''
msg['profit_extra'] = (
f" ({msg['gain']}: {msg['profit_amount']:.8f} {msg['stake_currency']}"
f"{msg['profit_extra']}
f"{msg['profit_extra']}")
is_fill = msg['type'] == RPCMessageType.SELL_FILL
is_sub_profit = msg['profit_amount'] != msg['cumulative_profit']
profit__prefix = 'Sub' if is_sub_profit else 'Cumulative'