anazarov
-Interested User-
Posts: 15
Joined: May 7, 2004
|
Posted: Jan 8, 2007 11:45 AM
Msg. 1 of 4
The LookupSymbol method returns found symbols in <symbol>space<description> format.
We need to extract from each found string symbol and its description as separated strings.
For symbol like MSFT MICROSOFT CORP we can simply subsrtact symbol as chars left of first space.
For symbol like MQF AO MSFT JAN 2007 C 17.0 we have to substract all left of the second space.
So, there is no one algorythm for extraction symbol from the result string.
Do you have any work-around?
|
DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005
|
Posted: Jan 8, 2007 03:02 PM
Msg. 2 of 4
This is actually something that is currently being reviewed. Unfortunately right now, there is not a viable workaround within the feed.
However, there is a downloadable symbol list on our website that is updated daily (www.iqfeed.net click on support -> symbol guide) which is a tab delimited text file (thus easily parsed) and the option symbols currently have underscores instead of spaces. This file (while much larger) will hopefully help unltil we have a better solution built into the feed.
|
anazarov
-Interested User-
Posts: 15
Joined: May 7, 2004
|
Posted: Jan 8, 2007 03:09 PM
Msg. 3 of 4
Thank you for your answer. I'm not often visiting this forum unfortunately and forum search is limited to 90 days only :)
I hope in the next version of the API it will be corrected.
|
DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005
|
Posted: Jan 8, 2007 03:14 PM
Msg. 4 of 4
You can search the entire forum history by switching the dropdown to the "-" option.
|