Use order_date_utc

This commit is contained in:
eSeR1805 2022-04-17 12:11:30 +03:00
parent 698c25f133
commit 17da4ca099
No known key found for this signature in database
GPG Key ID: BA53686259B46936
1 changed files with 1 additions and 1 deletions

View File

@ -1190,7 +1190,7 @@ class FreqtradeBot(LoggingMixin):
latest_candle_close_date = timeframe_to_next_date(self.strategy.timeframe,
latest_candle_open_date)
# Check if new candle
if order_obj and latest_candle_close_date.replace(tzinfo=None) > order_obj.order_date:
if order_obj and latest_candle_close_date > order_obj.order_date_utc:
# New candle
proposed_rate = self.exchange.get_rate(
trade.pair, side='entry', is_short=trade.is_short, refresh=True)