This commit is contained in:
Stefano Ariestasia 2024-01-08 16:04:30 +09:00
parent fdf9cc1b76
commit ef8712f4d9

View File

@ -172,8 +172,9 @@ class MarketCapFilter(IPairList):
else:
market = self._config['trading_mode']
pair_format = f"{self._stake_currency.upper()}" if (market == 'spot')
else f"{self._stake_currency.upper()}:{self._stake_currency.upper()}"
pair_format = f"{self._stake_currency.upper()}"
if (market == 'futures'):
pair_format += f":{self._stake_currency.upper()}"
for mc_pair in marketcap_list:
test_pair = f"{mc_pair.upper()}/{pair_format}"
if test_pair in pairlist: