示例#1
0
        public static void TestGetHQFrom163()
        {
            var list = WYStockBiz.GetTradeList();

            if (list.Count > 0)
            {
                DailyDAL.Insert(list);
            }
            Console.WriteLine(list.Count);
        }
示例#2
0
        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);
            }
        }