better log message for outdated history

This commit is contained in:
Janne Sinivirta
2018-02-24 19:25:08 +02:00
parent 67ad9e9351
commit 646d1f7316
2 changed files with 2 additions and 2 deletions

View File

@@ -113,7 +113,7 @@ def get_signal(pair: str, interval: int) -> (bool, bool):
# Check if dataframe is out of date
signal_date = arrow.get(latest['date'])
if signal_date < arrow.utcnow() - timedelta(minutes=(interval + 5)):
logger.warning('Too old dataframe for pair %s. Last ticker is %s minutes old',
logger.warning('Outdated history for pair %s. Last tick is %s minutes old',
pair, (arrow.utcnow() - signal_date).seconds // 60)
return (False, False) # return False ?