Use price_side for get_sell_rate

This commit is contained in:
Matthias
2020-02-23 14:06:42 +01:00
parent f91d7beaa1
commit de48a697b0
2 changed files with 5 additions and 2 deletions

View File

@@ -639,10 +639,10 @@ class FreqtradeBot:
logger.debug('Using order book to get sell rate')
order_book = self.exchange.get_order_book(pair, 1)
rate = order_book['bids'][0][0]
rate = order_book[f"{config_ask_strategy['price_side']}s"][0][0]
else:
rate = self.exchange.fetch_ticker(pair)['bid']
rate = self.exchange.fetch_ticker(pair)[config_ask_strategy['price_side']]
self._sell_rate_cache[pair] = rate
return rate