use .get all the time
This commit is contained in:
parent
b45d465ed8
commit
52065178e1
@ -511,7 +511,7 @@ class FreqtradeBot(object):
|
|||||||
experimental = self.config.get('experimental', {})
|
experimental = self.config.get('experimental', {})
|
||||||
if experimental.get('use_sell_signal') or experimental.get('ignore_roi_if_buy_signal'):
|
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.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,
|
(buy, sell) = self.strategy.get_signal(trade.pair, self.strategy.ticker_interval,
|
||||||
ticker)
|
ticker)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user