Send correct Profit for both exit types
This commit is contained in:
@@ -1810,7 +1810,7 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
'open_rate': trade.open_rate,
|
'open_rate': trade.open_rate,
|
||||||
'close_rate': order_rate,
|
'close_rate': order_rate,
|
||||||
'current_rate': current_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,
|
'profit_ratio': profit.profit_ratio,
|
||||||
'buy_tag': trade.enter_tag,
|
'buy_tag': trade.enter_tag,
|
||||||
'enter_tag': trade.enter_tag,
|
'enter_tag': trade.enter_tag,
|
||||||
|
|||||||
Reference in New Issue
Block a user