Some final polish to configurable_side

This commit is contained in:
Matthias
2020-02-26 19:49:54 +01:00
parent 3c5e716d8f
commit 0fea3a7ea7
3 changed files with 4 additions and 5 deletions

View File

@@ -647,12 +647,10 @@ class FreqtradeBot:
config_ask_strategy = self.config.get('ask_strategy', {})
if config_ask_strategy.get('use_order_book', False):
# This code is only used for notifications, selling uses the generator directly
logger.debug('Using order book to get sell rate')
rate = next(self._order_book_gen(pair, f"{config_ask_strategy['price_side']}s"))
# order_book = self.exchange.get_order_book(pair, 1)
# rate = order_book[f"{config_ask_strategy['price_side']}s"][0][0]
else:
rate = self.exchange.fetch_ticker(pair)[config_ask_strategy['price_side']]
self._sell_rate_cache[pair] = rate