Use order_date_utc
This commit is contained in:
parent
698c25f133
commit
17da4ca099
@ -1190,7 +1190,7 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
latest_candle_close_date = timeframe_to_next_date(self.strategy.timeframe,
|
latest_candle_close_date = timeframe_to_next_date(self.strategy.timeframe,
|
||||||
latest_candle_open_date)
|
latest_candle_open_date)
|
||||||
# Check if new candle
|
# 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
|
# New candle
|
||||||
proposed_rate = self.exchange.get_rate(
|
proposed_rate = self.exchange.get_rate(
|
||||||
trade.pair, side='entry', is_short=trade.is_short, refresh=True)
|
trade.pair, side='entry', is_short=trade.is_short, refresh=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user