Send correct Profit for both exit types

This commit is contained in:
Matthias 2024-01-06 11:53:14 +01:00
parent 90df6bcd54
commit 7f84996c1e

View File

@ -1810,7 +1810,7 @@ class FreqtradeBot(LoggingMixin):
'open_rate': trade.open_rate,
'close_rate': order_rate,
'current_rate': current_rate,
'profit_amount': profit.profit_abs if fill else profit.total_profit,
'profit_amount': profit.profit_abs,
'profit_ratio': profit.profit_ratio,
'buy_tag': trade.enter_tag,
'enter_tag': trade.enter_tag,