public static List <string> FilterByBaseCurency( this List <string> symbols, ExchangerEnum exchanger = ExchangerEnum.Bittrex, BaseCurrencyEnum currency = BaseCurrencyEnum.BTC) { return(symbols.Where(s => s.ToUpper().StartsWith(currency.ToString())).ToList()); }
public static List <ExchangeSymbol> FilterByBaseCurency( this List <ExchangeSymbol> globalSymbols, BaseCurrencyEnum currency = BaseCurrencyEnum.BTC) { return(globalSymbols .Where( s => !string.IsNullOrEmpty(s.Bittrex) || !string.IsNullOrEmpty(s.HitBtc) || !string.IsNullOrEmpty(s.KuCoin)) .Where(s => s.GlobalSymbol.EndsWith(currency.ToString())).ToList()); }
public static List <string> FilterByBaseCurency( this List <string> symbols, BaseCurrencyEnum currency = BaseCurrencyEnum.BTC) { return(symbols.Where(s => s.ToUpper().EndsWith(currency.ToString())).ToList()); }