Skip to content

Commit

Permalink
Remove sell_reason from exit notification fields
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Jan 4, 2024
1 parent 2230791 commit 682b462
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions freqtrade/freqtradebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,6 @@ def _notify_exit(self, trade: Trade, order_type: str, fill: bool = False,
'profit_ratio': profit.profit_ratio,
'buy_tag': trade.enter_tag,
'enter_tag': trade.enter_tag,
'sell_reason': trade.exit_reason, # Deprecated
'exit_reason': trade.exit_reason,
'open_date': trade.open_date_utc,
'close_date': trade.close_date_utc or datetime.now(timezone.utc),
Expand Down Expand Up @@ -1860,7 +1859,6 @@ def _notify_exit_cancel(self, trade: Trade, order_type: str, reason: str,
'profit_ratio': profit.profit_ratio,
'buy_tag': trade.enter_tag,
'enter_tag': trade.enter_tag,
'sell_reason': trade.exit_reason, # Deprecated
'exit_reason': trade.exit_reason,
'open_date': trade.open_date,
'close_date': trade.close_date or datetime.now(timezone.utc),
Expand Down

0 comments on commit 682b462

Please sign in to comment.