public static void TestGetHQFrom163() { var list = WYStockBiz.GetTradeList(); if (list.Count > 0) { DailyDAL.Insert(list); } Console.WriteLine(list.Count); }
public static void Testsina() { var list = SinaBiz.GetTradeList(2); if (list.Count > 0) { DailyDAL.Insert(list); } Console.WriteLine(list.Count); }
public static void TestHistoryDate() { var stocklist = WYStockBiz.GetTradeList(); foreach (var stockEntity in stocklist) { var list = WYStockBiz.HistoryTradeList(stockEntity.StockCode, DateTime.Now.AddYears(-1), DateTime.Now); if (list.Count > 0) { DailyDAL.Insert(list); } Console.WriteLine(list.Count); } }