Fix empty entry message if order doesn't fill immediately

closes #7368
This commit is contained in:
Matthias
2022-09-07 18:19:25 +02:00
parent c08c82bc40
commit 322f00e3e8
2 changed files with 2 additions and 1 deletions

View File

@@ -919,7 +919,7 @@ class FreqtradeBot(LoggingMixin):
'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,
'amount': order.safe_amount_after_fee if fill else order.amount,
'open_date': trade.open_date or datetime.utcnow(),
'current_rate': current_rate,
'sub_trade': sub_trade,