using constants instead of stripping the string

This commit is contained in:
misagh 2018-08-04 13:04:16 +02:00
parent af93b18475
commit 3ce4d20ab9
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ class FreqtradeBot(object):
# TODO: Add tests for this and the async stuff above
ticker_interval = self.strategy.ticker_interval
interval_in_seconds = int(ticker_interval[:-1]) * 60
interval_in_seconds = constants.TICKER_INTERVAL_MINUTES[ticker_interval] * 60
should_not_update = ((self._klines_last_fetched_time + interval_in_seconds +1) > round(time.time()))