Fix open rate being None formatting error.

This commit is contained in:
Reigo Reinmets 2021-12-13 13:54:01 +02:00
parent 6f6e7467f5
commit d4b31263ca

View File

@ -666,7 +666,7 @@ class FreqtradeBot(LoggingMixin):
'buy_tag': trade.buy_tag,
'exchange': self.exchange.name.capitalize(),
'pair': trade.pair,
'limit': safe_value_fallback(order, 'average', 'price'), # Deprecated (?)
'limit': open_rate, # Deprecated (?)
'open_rate': open_rate,
'order_type': order_type,
'stake_amount': trade.stake_amount,