Update freqtradebot.py

This commit is contained in:
Kavinkumar 2022-03-10 12:28:25 +05:30 committed by GitHub
parent 606d5e76cd
commit 738752d50d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1297,7 +1297,6 @@ class FreqtradeBot(LoggingMixin):
'current_rate': current_rate,
'profit_amount': profit,
'profit_ratio': profit_ratio,
'cumulative_profit': trade.realized_profit,
'buy_tag': trade.buy_tag,
'sell_reason': trade.sell_reason,
'open_date': trade.open_date,
@ -1307,6 +1306,8 @@ class FreqtradeBot(LoggingMixin):
'fiat_currency': self.config.get('fiat_display_currency', None),
'sub_trade': sub_trade,
}
if sub_trade:
msg['cumulative_profit'] = trade.realized_profit,
# Send the message
self.rpc.send_msg(msg)