mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-30 10:50:24 +00:00
add log print to see the time
This commit is contained in:
@@ -118,6 +118,7 @@ class MarketCapFilter(IPairList):
|
||||
else:
|
||||
# Use fresh pairlist
|
||||
# Check if pair quote currency equals to the stake currency.
|
||||
logger.info("Get active pairs for the market")
|
||||
_pairlist = [k for k in self._exchange.get_markets(
|
||||
quote_currencies=[self._stake_currency],
|
||||
tradable_only=True, active_only=True).keys()]
|
||||
@@ -153,6 +154,7 @@ class MarketCapFilter(IPairList):
|
||||
if marketcap_list:
|
||||
can_filter = True
|
||||
else:
|
||||
logger.info("Get top 250 marketcap coins from coingecko")
|
||||
data = self._coingekko.get_coins_markets(vs_currency='usd', order='market_cap_desc',
|
||||
per_page='250', page='1', sparkline='false',
|
||||
locale='en')
|
||||
@@ -167,6 +169,8 @@ class MarketCapFilter(IPairList):
|
||||
if can_filter:
|
||||
filtered_pairlist = []
|
||||
|
||||
logger.info("Create filtered pairlist")
|
||||
|
||||
if self._mode == 'top_rank':
|
||||
top_marketcap = marketcap_list[:self._limit:]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user