fixes the warning messages that outdated samples exist
please somebody else verify that this solves the following issue for them: 2018-06-20 01:55:00,115 - freqtrade.analyze - WARNING - Outdated history for pair BTS/BTC. Last tick is 10 minutes old 2018-06-20 01:55:00,651 - freqtrade.analyze - WARNING - Outdated history for pair XZC/BTC. Last tick is 10 minutes old 2018-06-20 01:55:01,469 - freqtrade.analyze - WARNING - Outdated history for pair LSK/BTC. Last tick is 10 minutes old 2018-06-20 01:55:01,716 - freqtrade.analyze - WARNING - Outdated history for pair TNT/BTC. Last tick is 10 minutes old 2018-06-20 01:55:02,233 - freqtrade.analyze - WARNING - Outdated history for pair FUEL/BTC. Last tick is 10 minutes old 2018-06-20 01:55:03,082 - freqtrade.analyze - WARNING - Outdated history for pair MANA/BTC. Last tick is 10 minutes old 2018-06-20 01:55:03,340 - freqtrade.analyze - WARNING - Outdated history for pair BCD/BTC. Last tick is 10 minutes old 2018-06-20 01:55:03,837 - freqtrade.analyze - WARNING - Outdated history for pair DGD/BTC. Last tick is 10 minutes old 2018-06-20 01:55:04,346 - freqtrade.analyze - WARNING - Outdated history for pair ADX/BTC. Last tick is 10 minutes old 2018-06-20 01:55:04,842 - freqtrade.analyze - WARNING - Outdated history for pair ADA/BTC. Last tick is 10 minutes old 2018-06-20 01:55:05,361 - freqtrade.analyze - WARNING - Outdated history for pair PPT/BTC. Last tick is 10 minutes old this seems to reduce these errors by a lot.
This commit is contained in:
parent
96b7273b8f
commit
435f299bcf
@ -148,7 +148,7 @@ class Analyze(object):
|
|||||||
# Check if dataframe is out of date
|
# Check if dataframe is out of date
|
||||||
signal_date = arrow.get(latest['date'])
|
signal_date = arrow.get(latest['date'])
|
||||||
interval_minutes = constants.TICKER_INTERVAL_MINUTES[interval]
|
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(
|
logger.warning(
|
||||||
'Outdated history for pair %s. Last tick is %s minutes old',
|
'Outdated history for pair %s. Last tick is %s minutes old',
|
||||||
pair,
|
pair,
|
||||||
|
Loading…
Reference in New Issue
Block a user