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 »Synchronously Download Historical Data
Author Topic: Synchronously Download Historical Data (2 messages, Page 1 of 1)

millymanz
-Interested User-
Posts: 1
Joined: Feb 5, 2014


Posted: Feb 5, 2014 08:49 AM          Msg. 1 of 2
Hi Guys,

Iqfeed comes with examples in c# of how to download historical data in asynchronously (History_Socketc#) I want to be able to download the data symbol by symbol in a synchronously instead.

Is there a way to do this?

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Feb 5, 2014 09:21 AM          Msg. 2 of 2
I do not have any sample code available for a C# app that meets your needs on hand, but is there a particular part of the socket communication that is causing you grief that I can help with?

That said, the server socket is synchronous in nature for history, so if you make 5 requests, they will always come back in the order sent. Each return will be terminated with the ENDMSG line, so you can check for when each request completes before sending your next request as well. This happens even if it is asynchonously called from the client. I'm not sure if that will help solve whatever issue you are having, but it felt relevant.

Tim
 

 

Time: Fri September 6, 2024 1:22 PM CFBB v1.2.0 11 ms.
© AderSoftware 2002-2003