Use timestamp in UTC timezone for ROI comparisons

This commit is contained in:
Matthias
2021-02-07 10:20:43 +01:00
parent 712d503e6c
commit e32b2097f0
2 changed files with 2 additions and 2 deletions

View File

@@ -932,7 +932,7 @@ class FreqtradeBot(LoggingMixin):
Check and execute sell
"""
should_sell = self.strategy.should_sell(
trade, sell_rate, datetime.utcnow(), buy, sell,
trade, sell_rate, datetime.now(timezone.utc), buy, sell,
force_stoploss=self.edge.stoploss(trade.pair) if self.edge else 0
)