using constants instead of stripping the string
This commit is contained in:
parent
af93b18475
commit
3ce4d20ab9
@ -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()))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user