示例#1
0
        public async Task YahooValuationPointTest()
        {
            var setting    = new YahooValuationSetting();
            var downloader = new YahooValuationDownloader(setting);
            var result     = await downloader.DownloadObjectStreamTaskAsync(setting.GetUrl("AAPL")).ConfigureAwait(false);

            PrintProperties(result.Sector, 0);
            PrintProperties(result.Industry, 0);
            PrintProperties(result.Self, 0);
        }
示例#2
0
        public async Task PopulateYahooValuationDataPoint(string ticker)
        {
            var setting    = new YahooValuationSetting();
            var downloader = new YahooValuationDownloader(setting);

            _yahooValDataPoint = await downloader.DownloadObjectTaskAsync(setting.GetUrl(ticker)).ConfigureAwait(false);

            if (!_yahoo.ContainsKey(ticker))
            {
                _yahoo.Add(ticker, _yahooValDataPoint);
            }
        }
示例#3
0
 public YahooValuationDownloader(YahooValuationSetting setting)
     : base(setting)
 {
 }