Use setting in 'exchange' dict

This commit is contained in:
Matthias 2018-08-20 20:01:57 +02:00
parent c9580b31d0
commit 8f41e0e190
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ class IStrategy(ABC):
# Check if dataframe is out of date
signal_date = arrow.get(latest['date'])
interval_minutes = constants.TICKER_INTERVAL_MINUTES[interval]
offset = self.config.get('outdated_offset', 5)
offset = self.config.get('exchange', {}).get('outdated_offset', 5)
if signal_date < (arrow.utcnow().shift(minutes=-(interval_minutes * 2 + offset))):
logger.warning(
'Outdated history for pair %s. Last tick is %s minutes old',