From 06c329abec2a4389a309ccb3161fe4528e82d963 Mon Sep 17 00:00:00 2001 From: Gert Wohlgemuth Date: Wed, 20 Jun 2018 02:00:08 -0700 Subject: [PATCH] added fix to reduce amount of outdated messages --- freqtrade/analyze.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/analyze.py b/freqtrade/analyze.py index 18586982c..3a2392599 100644 --- a/freqtrade/analyze.py +++ b/freqtrade/analyze.py @@ -146,10 +146,11 @@ class Analyze(object): latest = dataframe.iloc[-1] + # Check if dataframe is out of date signal_date = arrow.get(latest['date']) interval_minutes = constants.TICKER_INTERVAL_MINUTES[interval] - if signal_date < arrow.utcnow() - timedelta(minutes=(interval_minutes + 5)): + if signal_date < (arrow.utcnow() - timedelta(minutes=(interval_minutes + 5))): logger.warning( 'Outdated history for pair %s. Last tick is %s minutes old', pair,