Merge pull request #3425 from freqtrade/sell_rate_raise_empty
Verify sell-rate returns a value.
This commit is contained in:
@@ -676,6 +676,8 @@ class FreqtradeBot:
|
||||
raise PricingError from e
|
||||
else:
|
||||
rate = self.exchange.fetch_ticker(pair)[ask_strategy['price_side']]
|
||||
if rate is None:
|
||||
raise PricingError(f"Sell-Rate for {pair} was empty.")
|
||||
self._sell_rate_cache[pair] = rate
|
||||
return rate
|
||||
|
||||
|
Reference in New Issue
Block a user