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)




"Boy, probably spent a thousand hours trying to get ******* API to work right. And now two hours to have something running with IQFeed. Hmmm, guess I was pretty stupid to fight rather than switch all this time. And have gotten more customer service from you guys already than total from them… in five years." - Comment from Jim
"I just wanted to say how happy I am with your service. I was able to download the API docs last week and I was able to replicate Interactive Brokers historical bar queries and realtime bar queries over the weekend. That was about one of the fastest integrations that I've ever done and it works perfectly!!!!" - Comment from Jason via Email
"I started a trial a few weeks back before the market went wild. DTN.IQ didn’t miss anything and beat my other provider. I decided to stay with you because of the great service through all the volatility." - Comment from Mike
"With HUGE volume on AAPL and RIMM for 2 days, everyone in a trading room was whining about freezes, crashes and lag with *******, RealTick, TS and Cyber. InvestorRT with IQFeed was rock solid. I mean SOLID!" - Comment from Public IRC Chat
"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
"Just a thank you for the very helpful and prompt assistance and services. You provided me with noticeably superior service in my setup compared to a couple of other options I had looked at." - Comment from John
"I am a hedge fund manager here. It’s funny, I have a Bloomberg terminal and a Bridge feed, but I still like having my DTN feed!" - Comment from Feras
"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
"It’s so nice to be working with real professionals!" - Comment from Len
"Interactive Brokers tick data was inconsistent, so I have switched to using DTN exclusively. It is great to no longer have to worry about my datafeed all day long." - Comment from Philippe
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 »How to fugure out current connection status ?
Author Topic: How to fugure out current connection status ? (7 messages, Page 1 of 1)

Dierk Droth
-Interested User-
Posts: 67
Joined: Aug 11, 2004


Posted: Sep 6, 2004 08:31 AM          Msg. 1 of 7
Hi,

RegisterClientApp suggests, that the registered window handle gets connection status event as mouse move events. This is true for initial connect.

I just forced a connection loss but using the tool tcpview.exe and terminating the remote socket connections.

Unfortunately:
- I did no get any mouse move event to indicate the loss of connection
- nor did the connection manager try to recover the connection

Is there any way to:
a) track connection status
b) to manually recover the connection except shutting down the connection manager (which will not work due to a pending bug) and restarting it

Regards

Dierk Droth
www.trademagic.net
TradeMagic - Trading at its best

skunk
-DTN Evangelist-
Posts: 249
Joined: May 7, 2004


Posted: Sep 6, 2004 09:00 AM          Msg. 2 of 7
When the session drops, you will receive a message "S,SERVER DISCONNECTED"

When (if?) the connection manager reconnects, you will receive a message "S,SERVER CONNECTED"

To force connection manager to try to reconnect, send the following message to the connection manager "S,CONNECT"

To force connection manager to disconnect, send the following message to the connection manager "S,DISCONNECT"

Dierk Droth
-Interested User-
Posts: 67
Joined: Aug 11, 2004


Posted: Sep 6, 2004 09:03 AM          Msg. 3 of 7
Cool, thanks. I'll give it a try.

Are data streams (market data and level II) maintained or do I have to re-subscribe ?

Regards

Dierk Droth
www.trademagic.net
TradeMagic - Trading at its best

Dierk Droth
-Interested User-
Posts: 67
Joined: Aug 11, 2004


Posted: Sep 6, 2004 09:25 AM          Msg. 4 of 7
I just tried around and found that "S,SERVER DISCONNECTED" is sent after the connection was recovered (and was followed immediately by "S,SERVER CONNECTED").

As I see it now, I get an indication that the connection is recovered, but not as it is lost.

Any thoughts on that ?

Dierk Droth
www.trademagic.net
TradeMagic - Trading at its best

skunk
-DTN Evangelist-
Posts: 249
Joined: May 7, 2004


Posted: Sep 6, 2004 09:44 AM          Msg. 5 of 7
you need more patience. it take the connection manager a while (75 seconds) to determine that the connection has dropped

Dierk Droth
-Interested User-
Posts: 67
Joined: Aug 11, 2004


Posted: Sep 6, 2004 09:49 AM          Msg. 6 of 7
I see. Hope my customers are patient too if it takes them 75 seconds to find out that they are no longer connected .

Any way to configure these 75 seconds ?

Dierk Droth
www.trademagic.net
TradeMagic - Trading at its best

DTN_Jay_Froscheiser
-VP, Product Operations-
Posts: 1746
Joined: May 3, 2004

DTN IQFeed/DTN.IQ/DTN NxCore


Posted: Sep 6, 2004 05:58 PM          Msg. 7 of 7
The timeout value is hardcoded currently. In future releases, I don't know if it will be configurable or not (we will have to think about that), however, we are working to make the connection state easier to maintain (so it will attempt a reconnect immediately after being disconnected instead of waiting for a timeout).

Jay Froscheiser
DTN Market Access, LLC.
 

 

Time: Sat May 18, 2024 10:24 PM CFBB v1.2.0 6 ms.
© AderSoftware 2002-2003