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 started a trial a few weeks back before the market went wild. DTN.IQ didn’t miss anything and beat my other provider. I decided to stay with you because of the great service through all the volatility." - Comment from Mike
"I've been using IQFeed 4 in a multi-threaded situation for the last week or two on 2600 symbols or so with 100 simultaneous daily charts, and I have had 100% responsiveness." - Comment from Scott
"DTN has never given me problems. It is incredibly stable. In fact I've occasionally lost the data feed from Interactive Brokers, but still been able to trade because I'm getting good data from DTN." - Comment from Leighton
"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've never had DTN go out on me since switching. ******* would go down a couple times every month when I was using them." - Comment from Bryce in AL.
"Excellent datafeed !!!" - Comment from Arely
"This beats the pants off CQG, I am definitely switching to the ProphetX 3.0!" - Comment from Stephen
"I had always used ******* but for the past 2 weeks have been trying DTN IQFeed. Customer support has been extraordinary. They call just to make sure your problem hasn't recurred." - Comment from Public Forum
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"My broker in Davenport suggested I give you a try as he uses your service and says its the best." - Comment from Bill via RT Chat
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 »IQFeed Developer »IQFeed Developer Support »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)

-Interested User-
Posts: 18
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, 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 Evangelist-
Posts: 141
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:


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


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:


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:


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

Gary Stephen
DTN IQFeed Implementation Support Specialist

-Interested User-
Posts: 18
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: Tue September 29, 2020 8:17 AM CFBB v1.2.0 16 ms.
© AderSoftware 2002-2003