tidy up
This commit is contained in:
@@ -172,8 +172,9 @@ class MarketCapFilter(IPairList):
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
market = self._config['trading_mode']
|
market = self._config['trading_mode']
|
||||||
pair_format = f"{self._stake_currency.upper()}" if (market == 'spot')
|
pair_format = f"{self._stake_currency.upper()}"
|
||||||
else f"{self._stake_currency.upper()}:{self._stake_currency.upper()}"
|
if (market == 'futures'):
|
||||||
|
pair_format += f":{self._stake_currency.upper()}"
|
||||||
for mc_pair in marketcap_list:
|
for mc_pair in marketcap_list:
|
||||||
test_pair = f"{mc_pair.upper()}/{pair_format}"
|
test_pair = f"{mc_pair.upper()}/{pair_format}"
|
||||||
if test_pair in pairlist:
|
if test_pair in pairlist:
|
||||||
|
|||||||
Reference in New Issue
Block a user