plinakos / yahoo-finance-managed

Automatically exported from code.google.com/p/yahoo-finance-managed
0 stars 0 forks source link

IDAlphabeticSearchDownloadSettings #50

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
how to use this class?
thanks maas

Angel

Original issue reported on code.google.com by i...@advancedcomputing.ch on 23 Mar 2012 at 1:51

GoogleCodeExporter commented 8 years ago
It's a little bit tricky, because you also have to use IDSearchDownload for 
full results.

            //Download TopIndex (e.g. [A], [B], [1-9])
            AlphabeticIDIndexDownload dl = new AlphabeticIDIndexDownload();
            dl.Settings.TopIndex = null;
            Response<AlphabeticIDIndexResult> resp = dl.Download();

            //Download Index (e.g. [C], [Cl], [Ca(1/10)])
            AlphabeticalTopIndex topIndex = (AlphabeticalTopIndex)resp.Result.Items[2];
            dl.Settings.TopIndex = topIndex;
            Response<AlphabeticIDIndexResult> resp2 = dl.Download();

            //Download ID Search Results
            AlphabeticalIndex index = resp.Result.Items[0];
            IDSearchDownload dl2 = new IDSearchDownload();
            Response<IDSearchResult> resp3 = dl2.Download(index);

            IDSearchData[] idResults = resp3.Result.Items;

greetz

Maas

Original comment by Maas...@gmail.com on 23 Mar 2012 at 2:11

GoogleCodeExporter commented 8 years ago

Original comment by Maas...@gmail.com on 5 Apr 2012 at 3:07

GoogleCodeExporter commented 8 years ago
What references are to be given in order to use this code sample mentioned 
above??

Original comment by skrajobr...@gmail.com on 18 Jan 2013 at 7:41