Esempio n. 1
0
        static void GetStockByExchange()
        {
            AlphabeticIDIndexDownload dl1 = new AlphabeticIDIndexDownload();

            dl1.Settings.TopIndex = null;
            Response <AlphabeticIDIndexResult> resp1 = dl1.Download();

            Console.WriteLine("Id|Isin|Name|Exchange|Type|Industry");

            foreach (var alphabeticalIndex in resp1.Result.Items)
            {
                AlphabeticalTopIndex topIndex = (AlphabeticalTopIndex)alphabeticalIndex;
                dl1.Settings.TopIndex = topIndex;
                Response <AlphabeticIDIndexResult> resp2 = dl1.Download();

                foreach (var index in resp2.Result.Items)
                {
                    IDSearchDownload          dl2   = new IDSearchDownload();
                    Response <IDSearchResult> resp3 = dl2.Download(index);


                    int i = 0;
                    foreach (var item in resp3.Result.Items)
                    {
                        Console.WriteLine(item.ID + "|" + item.ISIN + "|" + item.Name + "|" + item.Exchange + "|" + item.Type + "|" + item.Industry);
                    }
                }
            }
            return;

            foreach (MaasOne.Finance.YahooFinance.Support.StockExchange ex in MaasOne.Finance.YahooFinance.Support.WorldMarket.DefaultStockExchanges)
            {
                MaasOne.Finance.YahooFinance.CompanyInfoDownloadSettings cs = new MaasOne.Finance.YahooFinance.CompanyInfoDownloadSettings();
                MaasOne.Finance.YahooFinance.CompanyInfoDownload         cd = new MaasOne.Finance.YahooFinance.CompanyInfoDownload();
                cd.Download("yhoo");

                Console.WriteLine("");
            }
        }
Esempio n. 2
0
        static void GetStockByExchange()
        {
            AlphabeticIDIndexDownload dl1 = new AlphabeticIDIndexDownload();
            dl1.Settings.TopIndex = null;
            Response<AlphabeticIDIndexResult> resp1 = dl1.Download();

            Console.WriteLine("Id|Isin|Name|Exchange|Type|Industry");

            foreach (var alphabeticalIndex in resp1.Result.Items)
            {
                AlphabeticalTopIndex topIndex = (AlphabeticalTopIndex)alphabeticalIndex;
                dl1.Settings.TopIndex = topIndex;
                Response<AlphabeticIDIndexResult> resp2 = dl1.Download();

                foreach (var index in resp2.Result.Items)
                {
                    IDSearchDownload dl2 = new IDSearchDownload();
                    Response<IDSearchResult> resp3 = dl2.Download(index);


                    int i = 0;
                    foreach (var item in resp3.Result.Items)
                    {
                        Console.WriteLine(item.ID + "|" + item.ISIN + "|" + item.Name + "|" + item.Exchange + "|" + item.Type + "|" + item.Industry);
                    }

                }
            }
            return;
            foreach (MaasOne.Finance.YahooFinance.Support.StockExchange ex in MaasOne.Finance.YahooFinance.Support.WorldMarket.DefaultStockExchanges)
            {
                MaasOne.Finance.YahooFinance.CompanyInfoDownloadSettings cs = new MaasOne.Finance.YahooFinance.CompanyInfoDownloadSettings();
                MaasOne.Finance.YahooFinance.CompanyInfoDownload cd = new MaasOne.Finance.YahooFinance.CompanyInfoDownload();
                cd.Download("yhoo");

                Console.WriteLine("");
            }
        }
Esempio n. 3
0
 public void DownloadAsync(CompanyInfoDownloadSettings settings, object userArgs)
 {
     base.DownloadAsync(settings, userArgs);
 }
Esempio n. 4
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <remarks></remarks>
 public CompanyInfoDownload()
 {
     this.Settings = new CompanyInfoDownloadSettings();
 }
Esempio n. 5
0
 public Base.Response <CompanyInfoResult> Download(CompanyInfoDownloadSettings settings)
 {
     return(base.Download(settings));
 }