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); }
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); } }
public YahooValuationDownloader(YahooValuationSetting setting) : base(setting) { }