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 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
"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
"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
"Can I get another account from you? I am tired of ******* going down so often" - Comment from George
"Thanks for the great product and support. During this week of high volume trading, my QuoteTracker + IQ Feed setup never missed a beat. Also, thanks for your swiftness in responding to data issues. I was on ******* for a few years before I made the switch over early this year, and wish I had done it a long time ago." - Comment from Ken
"This beats the pants off CQG, I am definitely switching to the ProphetX 3.0!" - Comment from Stephen
"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
"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
"Previously I was using *******. IQFeed is WAY more economical, and for my charting needs is just as good, if not better." - Comment from Public Forum Post
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 ».NET COM - Determine connected state of IQFeed
Author Topic: .NET COM - Determine connected state of IQFeed (4 messages, Page 1 of 1)

kleelof
-Interested User-
Posts: 23
Joined: May 30, 2010


Posted: May 30, 2010 05:41 AM          Msg. 1 of 4
Hello,

How can I determine if the IQFeed server has connected and disconnected?

take care,
lee

kleelof
-Interested User-
Posts: 23
Joined: May 30, 2010


Posted: May 30, 2010 05:48 AM          Msg. 2 of 4
Nevermind....programmer error.

kleelof
-Interested User-
Posts: 23
Joined: May 30, 2010


Posted: May 30, 2010 06:02 AM          Msg. 3 of 4
Hello,


Ok. I found the technique, but it is extremely unreliable. Here is what I am using:

Private Sub IQFeed_SystemMessage(ByVal eventSender As System.Object, ByVal e As AxIQFEEDYLib._DIQFeedYEvents_SystemMessageEvent) Handles IQFeed.SystemMessage
Debug.WriteLine("SystemMessage" + e.strSystemData)
Select Case True
Case InStr(e.strSystemData, "S,SERVER CONNECTED")
ServerPanel1.state = ServerPanel.ServerPanelStates.connectedToIQFeed

End Select
End Sub

Out of more than 10 launches, it worked twice.


take care,
lee

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


Posted: Jun 7, 2010 09:42 AM          Msg. 4 of 4
You should certainly be able to use the S,SERVER CONNECTED system message (and the paired S,SERVER DISCONNECTED system message) to determine if the feed is connected or not.

When you say that it only worked 2 out of 10 launches. Are you saying that in the other 8 launches, that this message was never delivered to your app?
 

 

Time: Mon May 6, 2024 1:07 PM CFBB v1.2.0 8 ms.
© AderSoftware 2002-2003