Пример #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 Testsina()
        {
            var list = SinaBiz.GetTradeList(2);

            if (list.Count > 0)
            {
                DailyDAL.Insert(list);
            }

            Console.WriteLine(list.Count);
        }
Пример #3
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);
            }
        }