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 »sequential or parallel history requests
Author Topic: sequential or parallel history requests (2 messages, Page 1 of 1)

mfgteam
-Interested User-
Posts: 19
Joined: Jul 4, 2013


Posted: Jul 8, 2013 07:36 AM          Msg. 1 of 2
Hello,

I am doing some preliminary tests with the historical socket in iqFeed.

I have had the impression that iqConnect serializes the requests made through
the socket and I would like a confirmation about this.

I have made just to test two different historical requests one after another

_histSocket.writeLine("HTX,@ESU13,1000,1,T1,2");
_histSocket.writeLine("HTX,@ESZ13,1000,1,T2,2");

our aim is to collect historical data from different maturities to make
a trade strategy based on that.

I see that the 1000 data points come after one another, that is
first all the data points which starts with request T1 come and
then all the data points which starts with T2.

Can I assume that this is always the case? Would I never
have a mixture of lines from the socket, for example 3 lines
which starts with T1, then 2 lines that starts with T2, etc...?

Another question. If this is the case... from your point of you
is it the same if I made the two requests immediately or there
is nothing to gain (in speed) from making the first request,
collecting all data and then making the second request?

...

Another question, what if I opened two sockets to iqConnect
and made two parallel requests there? Would I gain something
in terms of speed?

Thanks

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


Posted: Jul 8, 2013 08:44 AM          Msg. 2 of 2
Hello, you are correct that requests made on the same connection to IQFeed are serviced serially. There is a very slight performance increase (mostly noticeable on small requests) that can be gained by having at least one additional request queued at all times.

Requests made on parallel connections to IQFeed are serviced in parallel so if you are wanting better performance, multiple connections is certainly the way to go.
 

 

Time: Wed September 18, 2024 6:35 PM CFBB v1.2.0 7 ms.
© AderSoftware 2002-2003