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 am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"Everything is working amazing now. I'm already impressed with the true-tick feed of IQFeed and it's ability to support my 480 symbol layout." - Comment from Tyler via Email
"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
"Its working FABULOUSLY for me!! Holy cow...there has been so much I've been missing lately, and with this feed and Linnsoft software...I'm in the game now." - Comment from Chris R.
"Version 4.0.0.2 has been working well for me and I appreciate that it is now a much tighter client to work with. I feel I can go to press with my own application and rely on a stable platform" - Comment from David in IA.
"I am very pleased with the DTNIQ system for quotes and news." - Comment from Larry
"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
"Everything is working great ! Very impressive client. The news refreshes better and is more pertinent than the ******* feed I paid $ 100/month for. I Also like the charts a lot." - Comment from Leon
"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
"I just wanted to tell you what a fine job you have been doing. While *******, from what I hear, has been down and out, off and on, IQ feed has held like a champ this week." - Comment from Shirin
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: Sat April 20, 2024 6:40 AM CFBB v1.2.0 8 ms.
© AderSoftware 2002-2003