Skip to content

Commit

Permalink
Be sure to provide an amount in entry notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Sep 21, 2022
1 parent 08e183f commit 91dc5e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freqtrade/freqtradebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ def _notify_enter(self, trade: Trade, order: Order, order_type: Optional[str] =
'stake_amount': trade.stake_amount,
'stake_currency': self.config['stake_currency'],
'fiat_currency': self.config.get('fiat_display_currency', None),
'amount': order.safe_amount_after_fee if fill else order.amount,
'amount': order.safe_amount_after_fee if fill else (order.amount or trade.amount),
'open_date': trade.open_date or datetime.utcnow(),
'current_rate': current_rate,
'sub_trade': sub_trade,
Expand Down

0 comments on commit 91dc5e7

Please sign in to comment.