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)




"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.
"Thank you so much - awesome feed, awesome service!" - Comment from Greg via Email
"I have to tell you though that using the IQFeed API is about the easiest and cleanest I have seen for some time." - Comment from Jim
"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
"If you are serious about your trading I would not rely on IB data for serious daytrading. Took me a while to justify the cost of IQ Feed and in the end, it's just a 2 point stop on ES. Better safe than sorry" - Comment from Public Forum
"It’s so nice to be working with real professionals!" - Comment from Len
"I noticed that ******* quotes locked up shortly after the interest rate announcement yesterday while yours stayed stable." - Comment from Ron in Utah
"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
"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
"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.
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 »Mutiple sockets vs. Multiple Symbols on single socjket
Author Topic: Mutiple sockets vs. Multiple Symbols on single socjket (2 messages, Page 1 of 1)

Trender
-Interested User-
Posts: 16
Joined: Sep 22, 2009


Posted: Nov 11, 2011 11:51 AM          Msg. 1 of 2
Hi,

I would like to collect several symbols and markets statistics using Level1 and Level2 data streams and
perform some real time processing.

I wonder which is the best practice or more recommended approach:

1. Having multiple symbols sharing the same socket - this way all events arrive to the same socket,
the problem I can think of us that all data arrives serially so at any given moment, not all the latest data
for all the watched symbols is available for processing.

2. Having a dedicated socket for each symbol - better utilization of the OS threading(?),
If I understand correctly, I will have the most updated data for all the watched symbols all the time.
also maybe it is better to collect the data in a different process for each symbol (although it seems to me
an overkill)

Thanks
Trender

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


Posted: Nov 21, 2011 02:31 PM          Msg. 2 of 2
Sorry for the late reply. IQConnect currently services all streaming data for symbols on a single thread. As a result, there is no advantage in terms of the feed itself for breaking your symbol list into multiple socket connections/processes. On the other hand, splitting them out to multiple sockets (if it is easier/needed within your app/apps) will not add a significant amount of overhead to IQConnect.
 

 

Time: Sun June 2, 2024 4:13 PM CFBB v1.2.0 12 ms.
© AderSoftware 2002-2003