Added some more checks for nullarts config properties
This commit is contained in:
parent
fa525741df
commit
62d936e11d
@ -255,7 +255,7 @@ class FreqtradeBot(object):
|
||||
|
||||
used_rate = ticker_rate
|
||||
|
||||
if self.config['bid_strategy'].get('use_book_order', False):
|
||||
if 'use_book_order' in self.config['bid_strategy'] and self.config['bid_strategy'].get('use_book_order', False):
|
||||
logger.info('Getting price from Order Book')
|
||||
orderBook_top = self.config.get('bid_strategy', {}).get('book_order_top', 1)
|
||||
orderBook = exchange.get_order_book(pair, orderBook_top)
|
||||
|
Loading…
Reference in New Issue
Block a user