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'm very glad I switched to IQFeed. It's working perfectly with no lag, even during fast market conditions." - Comment from Andy via Email
"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
"You are much better than lawyers or the phone company because you answer the phone when I call! I just love your customer service." - Comment from Isreal
"I am very pleased with the DTNIQ system for quotes and news." - Comment from Larry
"The people at Nirvana have very nice things to say about your company and I can see why! Price and service is a potent combination." - Comment from Ed
"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 use IQ Feed, Great stuff as far as data analysis information, storage and retrieval is concerned." - Comment from Public Forum
"Awesome response, as usual. It is a sincere and refreshing pleasure to do business with DTN, compared to your competition." - Comment from Ryan
"It’s so nice to be working with real professionals!" - Comment from Len
"Everything is working great with the API. I love it." - Comment from Calvin
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: Wed April 24, 2024 2:51 PM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003