Merge pull request #3425 from freqtrade/sell_rate_raise_empty

Verify sell-rate returns a value.
This commit is contained in:
hroff-1902
2020-06-02 02:22:56 +03:00
committed by GitHub
2 changed files with 24 additions and 0 deletions

View File

@@ -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