use .get all the time

This commit is contained in:
Matthias 2018-07-31 20:53:32 +02:00
parent b45d465ed8
commit 52065178e1

View File

@ -511,7 +511,7 @@ class FreqtradeBot(object):
experimental = self.config.get('experimental', {})
if experimental.get('use_sell_signal') or experimental.get('ignore_roi_if_buy_signal'):
# ticker = self.exchange.get_ticker_history(trade.pair, self.strategy.ticker_interval)
ticker = self._klines[trade.pair]
ticker = self._klines.get(trade.pair)
(buy, sell) = self.strategy.get_signal(trade.pair, self.strategy.ticker_interval,
ticker)