Merge pull request #2995 from freqtrade/stake_curr_empty

Allow Stake currency empty when using download-data
This commit is contained in:
hroff-1902
2020-03-02 00:53:09 +03:00
committed by GitHub
2 changed files with 18 additions and 1 deletions

View File

@@ -332,7 +332,8 @@ class Exchange:
logger.warning(f"Pair {pair} is restricted for some users on this exchange."
f"Please check if you are impacted by this restriction "
f"on the exchange and eventually remove {pair} from your whitelist.")
if not self.get_pair_quote_currency(pair) == self._config['stake_currency']:
if (self._config['stake_currency'] and
self.get_pair_quote_currency(pair) != self._config['stake_currency']):
invalid_pairs.append(pair)
if invalid_pairs:
raise OperationalException(