def find_exchanges(features=None, skip_blacklist=True, is_authenticated=False, quote_currency=None): """ Find exchanges filtered by a list of feature. Parameters ---------- features: str The list of features. skip_blacklist: bool is_authenticated: bool quote_currency: bool Returns ------- list[Exchange] """ exchange_names = CCXT.find_exchanges(features, is_authenticated) exchanges = [] for exchange_name in exchange_names: if skip_blacklist and is_blacklist(exchange_name): continue exchange = get_exchange( exchange_name=exchange_name, skip_init=True, quote_currency=quote_currency, ) if features is not None: if 'dailyBundle' in features \ and not exchange.has_bundle('daily'): continue elif 'minuteBundle' in features \ and not exchange.has_bundle('minute'): continue exchanges.append(exchange) return exchanges
def find_exchanges(features=None, skip_blacklist=True, is_authenticated=False, base_currency=None): """ Find exchanges filtered by a list of feature. Parameters ---------- features: str The list of features. skip_blacklist: bool is_authenticated: bool base_currency: bool Returns ------- list[Exchange] """ exchange_names = CCXT.find_exchanges(features, is_authenticated) exchanges = [] for exchange_name in exchange_names: if skip_blacklist and is_blacklist(exchange_name): continue exchange = get_exchange( exchange_name=exchange_name, skip_init=True, base_currency=base_currency, ) if features is not None: if 'dailyBundle' in features \ and not exchange.has_bundle('daily'): continue elif 'minuteBundle' in features \ and not exchange.has_bundle('minute'): continue exchanges.append(exchange) return exchanges