Show pairs which are wrong ...
This commit is contained in:
@@ -134,7 +134,12 @@ def _validate_whitelist(conf: Dict[str, Any]) -> None:
|
||||
|
||||
if pl.get('method') == 'StaticPairList':
|
||||
stake = conf['stake_currency']
|
||||
pairlist = conf['exchange'].get('pair_whitelist')
|
||||
if not all([p.endswith(f'/{stake}') for p in pairlist]):
|
||||
invalid_pairs = []
|
||||
for pair in conf['exchange'].get('pair_whitelist'):
|
||||
if not pair.endswith(f'/{stake}'):
|
||||
invalid_pairs.append(pair)
|
||||
|
||||
if invalid_pairs:
|
||||
raise OperationalException(
|
||||
f"Stake-currency {stake} not compatible with pair-whitelist.")
|
||||
f"Stake-currency '{stake}' not compatible with pair-whitelist. "
|
||||
f"Please remove the following pairs: {invalid_pairs}")
|
||||
|
Reference in New Issue
Block a user