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 used to have *******, but they are way more money for the same thing. I have had no probs with data from DTN since switching over." - Comment from Public Forum Post
"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.
"IQ feed is brilliant. The support is mind-bending. What service!" - Comment from Public Forum Post
"I just wanted to let you know how fast and easy I found it to integrate IQFeed into our existing Java code using your JNI client. In my experience, such things almost never go so smoothly - great job!" - Comment from Nate
"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
"I cannot believe what a difference it makes trading with ProphetX!" - Comment from Bruce in Los Angeles
"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
"IQFeed version 4 is a real screamer compared to anything else I have seen." - Comment from Tom
"Everything is working great with the API. I love it." - Comment from Calvin
"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
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 »Handling IQConnect disconnects
Author Topic: Handling IQConnect disconnects (5 messages, Page 1 of 1)

USV
-Interested User-
Posts: 20
Joined: Mar 20, 2015


Posted: May 4, 2015 10:49 AM          Msg. 1 of 5
Hello,

What would be the best way of handling IQConnect disconnects due to local network failure. As of now, I have my application setup so that upon startup, it uses the Lookup socket to load data since the close of the previous day and then appends real-time data from the Level1 socket. When IQConnect disconnects from DTN servers due to a local network failure, and then reconnects, the real-time feed resumes but the data during the "outage" is missing. I want to handle this situation so that the application reloads from the Lookup port upon reconnect and repeats the same process that it runs upon startup.

From the documentation, it looks like utilizing the S,STATS messages on the Admin port is one way to go. I could monitor the Status field in this message and when it changes to "Not Connected", I could flag the condition and wait for a subsequent "Connected" status change and reload the data. Would this be the right way to go?

Thanks.
Edited by USV on May 4, 2015 at 10:50 AM

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


Posted: May 4, 2015 10:52 AM          Msg. 2 of 5
That would certainly be one way to go. However, if you already have a connection to the Level 1 feed established, you should be getting a S,SERVER DISCONNECTED message when the network outage is detected followed by a S,SERVER CONNECTED message when connectivity is once again restored. Monitoring for those messages would probably be the easiest for you.

USV
-Interested User-
Posts: 20
Joined: Mar 20, 2015


Posted: May 4, 2015 11:14 AM          Msg. 3 of 5
Thank you Steve. I guess I didn't look at the docs hard enough :-)

fixDTN
-Interested User-
Posts: 3
Joined: Jul 13, 2015


Posted: Jul 13, 2015 12:51 PM          Msg. 4 of 5
I am wondering why there is this recent surge in disconnect issues. No one seems to know why and it's a relatively new issue.

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


Posted: Jul 13, 2015 01:30 PM          Msg. 5 of 5
I am sorry you are having issues, I have replied in your original thread and sent emails in regards to this matter, but given that your issue is unrelated to these posts I will be using email primarily going forward. We can report any new issues found in a separate thread so that it is less confusing to others that might benefit from what we find.

Tim
 

 

Time: Sun May 19, 2024 12:06 PM CFBB v1.2.0 6 ms.
© AderSoftware 2002-2003