From 7f927b4d7a636feb36a7e28a348b36a5d1ee6e32 Mon Sep 17 00:00:00 2001 From: xmatthias Date: Thu, 21 Jun 2018 20:47:53 +0200 Subject: [PATCH] Squashed commit of the following: commit 435f299bcf52c7fe0be1b44c5ea7a9983f31b811 Author: Gert Wohlgemuth Date: Wed Jun 20 01:57:28 2018 -0700 improve readability of outdated history code --- freqtrade/analyze.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/analyze.py b/freqtrade/analyze.py index f18ae291c..17a8f27b9 100644 --- a/freqtrade/analyze.py +++ b/freqtrade/analyze.py @@ -148,7 +148,7 @@ class Analyze(object): # 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,