コード例 #1
0
 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());
 }
コード例 #2
0
 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());
 }
コード例 #3
0
 public static List <string> FilterByBaseCurency(
     this List <string> symbols,
     BaseCurrencyEnum currency = BaseCurrencyEnum.BTC)
 {
     return(symbols.Where(s => s.ToUpper().EndsWith(currency.ToString())).ToList());
 }