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)




"DTN feed was the only feed that consistently matched Bloomberg feed for BID/ASK data verification work these past years......DTN feed is a must for my supply & demand based trading using Cumulative Delta" - Comment from Public Forum Post
"The service is great, I see a noticeable improvement in my volume profiles over [broker]'s data feed" - Comment from Larry
"Thanks for all of your help. Great customer service deserves to be recognized which one the reasons I've been a customer of DTN for over 10 years!" - Comment from Stuart
"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
"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
"I like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"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
"If someone needs the best quality data and backfill beyond what their broker provides at a rate that is the best in the industry, I highly recommend IQFeed." - Comment from Josh via Public Forum
"Thanks for following up with me. You guys do a great job in tech support." - Comment from Phelps
"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
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 »Archive (2017 and earlier) »IQFeed Developer Support »Historical lookup efficiently
Author Topic: Historical lookup efficiently (2 messages, Page 1 of 1)

davhol_03086
-Interested User-
Posts: 10
Joined: Apr 27, 2005


Posted: Jun 10, 2009 11:27 AM          Msg. 1 of 2
If I need to retrieve historical data for 500 symbols via the socket lookup. Is it faster to use a thread pool of 50 threads making new connections to the LookupPort for each symbol, or push the 500 requests through on one connection to the LookupPort with a RequestID for each symbol? I think what this boils down to is can I take advantage of concurrent request handling on your server? Or maybe get my requests on your queue sooner? Is there a limit to how many requests I can make on one connection (with unique RequestIDs) at one time? Is there a disadvantage to a large number of requests on one connection?
Thanks

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Jun 10, 2009 12:40 PM          Msg. 2 of 2
It will definately be more efficient to make multiple socket connections to IQConnect and make simultaneous connections. You will have to do some testing to find out where the breakeven point is in terms of speed vs CPU usage vs available bandwidth for your configuration. Most developers find that between 5 and 10 simultaneous connections is optimal.
 

 

Time: Sun May 12, 2024 12:02 AM CFBB v1.2.0 10 ms.
© AderSoftware 2002-2003