Ejemplo n.º 1
0
        public void DownloadAllData(List<int> stockIds, DateTime startDate, DateTime endDate)
        {
            IDailyDownloader downloader = new ShDailyDownloader();

            StockMongoDBSaver dbsaver = new StockMongoDBSaver();
            dbsaver.BeforeAdd();

            foreach (int id in stockIds)
            {
                Logger_.Log("Download data of stock: " + id);
                downloader.DownloadData(dbsaver, id, startDate, endDate);
            }

            Logger_.Log("Download all data finished!");
        }
Ejemplo n.º 2
0
        public void DownloadAllData(List <int> stockIds, DateTime startDate, DateTime endDate)
        {
            IDailyDownloader downloader = new ShDailyDownloader();

            StockMongoDBSaver dbsaver = new StockMongoDBSaver();

            dbsaver.BeforeAdd();

            foreach (int id in stockIds)
            {
                Logger_.Log("Download data of stock: " + id);
                downloader.DownloadData(dbsaver, id, startDate, endDate);
            }

            Logger_.Log("Download all data finished!");
        }