mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
fixed test
This commit is contained in:
parent
a85d17327b
commit
a82cdf0add
|
@ -282,7 +282,7 @@ class IStrategy(ABC):
|
|||
interval_minutes = timeframe_to_minutes(interval)
|
||||
if (arrow.utcnow() - signal_date).total_seconds() // 60 >= interval_minutes:
|
||||
logger.warning('Old candle for pair %s. Last tick is %s minutes old',
|
||||
pair, (arrow.utcnow() - signal_date).total_seconds() // 60)
|
||||
pair, int(arrow.utcnow() - signal_date).total_seconds() // 60)
|
||||
return False, False
|
||||
|
||||
# Check if dataframe is out of date
|
||||
|
@ -291,7 +291,7 @@ class IStrategy(ABC):
|
|||
logger.warning(
|
||||
'Outdated history for pair %s. Last tick is %s minutes old',
|
||||
pair,
|
||||
(arrow.utcnow() - signal_date).total_seconds() // 60
|
||||
int((arrow.utcnow() - signal_date).total_seconds() // 60)
|
||||
)
|
||||
return False, False
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user