make VolumePairlist less verbose
no need to print the full whitelist on every iteration
This commit is contained in:
parent
9005447590
commit
d785d76370
@ -5,7 +5,6 @@ bot constants
|
|||||||
"""
|
"""
|
||||||
DEFAULT_CONFIG = 'config.json'
|
DEFAULT_CONFIG = 'config.json'
|
||||||
DEFAULT_EXCHANGE = 'bittrex'
|
DEFAULT_EXCHANGE = 'bittrex'
|
||||||
DYNAMIC_WHITELIST = 20 # pairs
|
|
||||||
PROCESS_THROTTLE_SECS = 5 # sec
|
PROCESS_THROTTLE_SECS = 5 # sec
|
||||||
DEFAULT_TICKER_INTERVAL = 5 # min
|
DEFAULT_TICKER_INTERVAL = 5 # min
|
||||||
HYPEROPT_EPOCH = 100 # epochs
|
HYPEROPT_EPOCH = 100 # epochs
|
||||||
|
@ -55,7 +55,6 @@ class VolumePairList(IPairList):
|
|||||||
# Generate dynamic whitelist
|
# Generate dynamic whitelist
|
||||||
self._whitelist = self._gen_pair_whitelist(
|
self._whitelist = self._gen_pair_whitelist(
|
||||||
self._config['stake_currency'], self._sort_key)[:self._number_pairs]
|
self._config['stake_currency'], self._sort_key)[:self._number_pairs]
|
||||||
logger.info(f"Searching pairs: {self._whitelist}")
|
|
||||||
|
|
||||||
@cached(TTLCache(maxsize=1, ttl=1800))
|
@cached(TTLCache(maxsize=1, ttl=1800))
|
||||||
def _gen_pair_whitelist(self, base_currency: str, key: str) -> List[str]:
|
def _gen_pair_whitelist(self, base_currency: str, key: str) -> List[str]:
|
||||||
@ -92,4 +91,6 @@ class VolumePairList(IPairList):
|
|||||||
valid_tickers.remove(t)
|
valid_tickers.remove(t)
|
||||||
|
|
||||||
pairs = [s['symbol'] for s in valid_tickers]
|
pairs = [s['symbol'] for s in valid_tickers]
|
||||||
|
logger.info(f"Searching pairs: {self._whitelist}")
|
||||||
|
|
||||||
return pairs
|
return pairs
|
||||||
|
Loading…
Reference in New Issue
Block a user