Beispiel #1
0
        private void RetrieveYahooCompanyProfile(string symbol, ref Dictionary <string, Object> stats)
        {
            CompanyProfileDownload d1 = new CompanyProfileDownload();
            DownloadClient <CompanyProfileResult> baseD1 = d1;

            CompanyProfileDownloadSettings settings = d1.Settings;

            settings.ID = symbol;

            Response <CompanyProfileResult> resp = baseD1.Download();
            SettingsBase baseSettings            = baseD1.Settings;

            ConnectionInfo connInfo = resp.Connection;

            if (connInfo.State == ConnectionState.Success)
            {
                CompanyProfileResult result = resp.Result;
                //stats.Add("CorporateGovernance", result.Item.CorporateGovernance);
                stats.Add("BusinessSummary", result.Item.BusinessSummary);
            }
            else
            {
                Exception ex = connInfo.Exception;
                Console.WriteLine(ex.Message);
            }
        }
 public Base.Response<CompanyProfileResult> Download(CompanyProfileDownloadSettings settings)
 {
     return base.Download(settings);
 }