public void Get_All_HistoricalData() { var reader = new CryptoReader(); var df = Frame.FromColumns(CoinPrices(reader, reader.GetCoinList().Select(c => c.Symbol), new DateTime(2017, 10, 10))); df.SaveCsv(Path.Combine(@"G:\temp\Crypto", DateTime.Now.ToString("yyyyMMdd_HHmmss_ffffff") + ".csv"), true); }
public void Get_CoinList() { var reader = new CryptoReader(); var coins = reader.GetCoinList().ToList(); Assert.IsNotEmpty(coins); Console.WriteLine("==================ProofType==============="); Console.WriteLine(string.Join(Environment.NewLine, coins.Select(_ => _.ProofType.Trim()).Distinct())); Console.WriteLine("==================Algorithm==============="); Console.WriteLine(string.Join(Environment.NewLine, coins.Select(_ => _.Algorithm.Trim()).Distinct())); }