Example #1
0
        public async Task GoogleIntradyCsvDownloaderTest()
        {
            //1425907800
            DateTime now = MyHelper.DateTimeFromUnixTimestamp(1424874600, -300);

            Debug.WriteLine(now.ToString("MM-dd-yyyy hh:mm:ss"));

            var setting    = new GoogleIntradayCsvSetting("CSCO");
            var downloader = new GoogleIntradayCsvDownloader(setting);
            var url        = setting.GetUrl();

            Debug.WriteLine(url);
            var data = await downloader.DownloadObjectStreamTaskAsync().ConfigureAwait(false);

            foreach (var data1 in data)
            {
                PrintProperties(data1, 0);
            }
        }
Example #2
0
 public GoogleIntradayCsvDownloader(GoogleIntradayCsvSetting setting)
     : base(setting)
 {
 }