Join the 80,000 other DTN customers who enjoy the fastest, most reliable data available. There is no better value than DTN!

(Move your cursor to this area to pause scrolling)




"I use IQ Feed, Great stuff as far as data analysis information, storage and retrieval is concerned." - Comment from Public Forum
"There is no doubt that IQFeed is the best data provider. I am very satisfied with your services. And IQFeed is the only one that I would recommend to my friends. Now, most of them are using your product in China." - Comment from Zhezhe
"I used to have *******, but they are way more money for the same thing. I have had no probs with data from DTN since switching over." - Comment from Public Forum Post
"Thank God for your Data Feed as the only Zippers I see are on my pants (LOL), and no more 200 pip spikes to mess up charts." - Comment from Spiro via Email
"I like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"For anyone considering using DTN.IQ for a data feed, my experience with the quality of data and the tech support has been very positive." - Comment from Public Forum
"I will tell others who want to go into trading that DTN ProphetX is an invaluable tool, I don't think anyone can trade without it..." - Comment from Luther
"Excellent datafeed !!!" - Comment from Arely
"I was with ******* for 4 years at $230 a month, this is a huge savings for me, GOD BLESS YOU PEOPLE," - Comment from T.S. via Email
Home  Search  Register  Login  Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTNMarkets on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »NEW IQFEED FORUMS »IQFeed API Questions »Is there a way to limit SBF lookup responses?
Author Topic: Is there a way to limit SBF lookup responses? (3 messages, Page 1 of 1)

MV_opt
-Interested User-
Posts: 19
Joined: Jun 3, 2020


Posted: Sep 7, 2020 06:04 PM          Msg. 1 of 3
When using the SBF command on the Lookup port (see http://www.iqfeed.net/dev/api/docs/SymbolLookupviaTCPIP.cfm), I can see no way to limit the number of responses.

It's easy enough for us to drop all responses after the first x responses have been received, but that leaves the port still tied up sending data which we will throw away.

Is there a better way to limit the number of responses? Adding a maximum number of responses to the SBF call would be a good way.

An example of this is if you search the description for "mini" I stopped the process at 11,000 results!

DTN_Gary_Stephen
-DTN Guru-
Posts: 394
Joined: Jul 3, 2019


Posted: Sep 8, 2020 11:20 AM          Msg. 2 of 3
You can filter SBF searches by Security Type or Exchange, but not both. To use a random example:

SBF,s,SK

Without any filters, this returns 6,984 matches. If you know you're looking for an equity, you can do this:

SBF,s,SK,t,1

The t means "security type" and the 1 is type 1, which is equities. The command SST returns a list of these codes and what they mean. That search returns only 160 matches, all of which are equities.

You can use multiple codes:

SBF,s,SK,t,1 2 3

And you'll get matches from any of those three security type (equities, index/equity options, mutual funds).

Similarly, you can use the letter e to limit responses to one or more listed markets:

SBF,s,SK,e,7

This will return only the 22 symbols traded on NYSE. You can also use the same space-separated list to search for symbols that may be on any of multiple exchanges. The command SLM returns the list of exchange codes.

All of these techniques also work with text searches:

SBF,d,mini,e,7

This only returns about 30 matches, all of which are NYSE symbols.

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist

MV_opt
-Interested User-
Posts: 19
Joined: Jun 3, 2020


Posted: Sep 8, 2020 07:50 PM          Msg. 3 of 3
Thanks Gary,

we do use those but we have a form which allows clients to search and they have control over those options. But we all know that clients can do some strange things.

It would be very helpful if there was a max number which we could add into the call.
 

 

Time: Thu April 25, 2024 6:33 AM CFBB v1.2.0 8 ms.
© AderSoftware 2002-2003