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)




"This beats the pants off CQG, I am definitely switching to the ProphetX 3.0!" - Comment from Stephen
"I am very happy I changed. I love the product, but more so I am thrilled with Tech Support. You are knowledgeable, polite, pleasant and professional." - Comment from Pat
"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
"As a past ******* customer(and not a happy one), IQ Feed by DTN is a much better and cheaper product with great customer support. I have had no problems at all since switching over." - Comment from Public Forum
"I noticed that ******* quotes locked up shortly after the interest rate announcement yesterday while yours stayed stable." - Comment from Ron in Utah
"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.
"The service is great, I see a noticeable improvement in my volume profiles over [broker]'s data feed" - Comment from Larry
"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
"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
"This is an excellent value, the system is generous (allowing for 500 stocks) and stable (and really is tick-by-tick), and the support is fantastic." - Comment from Shirin via Email
Home  Search  Register  Login  Blogs Recent Posts

Information on Various DTN Products:
DTN IQFeed | DTN ProphetX | DTN Ag | NxCore
Follow DTN_IQFeed on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »IQFeed Developer »IQFeed Developer Support »IQConnect disconnect behavior
Author Topic: IQConnect disconnect behavior (6 messages, Page 1 of 1)

mac
-Interested User-
Posts: 8
Joined: Apr 6, 2017


Posted: Apr 14, 2017 01:05 AM          Msg. 1 of 6
Hello,

I am new to IQFeed. I have written my own software in .Net to interface with IQConnect via TCPIP. I added a Level1 feed to my current trading infrastructure in a limited fashion. I quickly ran into problems. Although I don’t have direct evidence to support this, I suspect I received an unsolicited “S,SERVER CONNECTED”. By unsolicited, I mean that I did not send the “S,CONNECT” right before I think I received the connected message.

I haven’t found documentation related to unexpected disconnects from NTD servers. Unfortunately, I am unable to use the “pull the plug” method to test the disconnect behavior of IQConnect. My infrastructure runs in the cloud.

I’m looking for any insight into the following.

1. How does IQConnect decide when a connection to DTN servers has failed? It there a timeout on “heartbeats”? (say my internet connection is down)

2. When a connection is thought to have failed, will IQConnect try indefinitely to reconnect?

3. If the feed reconnects, will current watches be maintained? Will I start seeing Level1 data arrive without resubscribing?

4. On a derivative feed, will missing interval bars be replayed? ( I think not because I believe IQConnect computes these locally from tick data, but I could be wrong)

5. Is there anyway to get IQConnectLog to append instead of overwrite?

MAC

mac
-Interested User-
Posts: 8
Joined: Apr 6, 2017


Posted: Apr 14, 2017 01:08 AM          Msg. 2 of 6
More...

6. Is there a recommended maximum duration I can run IQConnect without a restart? Is 24/5 ok? or should I restart daily?

MAC

mac
-Interested User-
Posts: 8
Joined: Apr 6, 2017


Posted: Apr 14, 2017 07:53 AM          Msg. 3 of 6
I was able to block inbound traffic from DTN (IQFeed servers) on my cloud instance. I have some answers to my questions.

1. IQConnect will determine there is a connection problem if nothing is received for 5 seconds. I guess this is why they send frequent (1s) TimeStamps.

2. After 10 minutes IQConnect was still trying to reconnect. Although this is not indefinite, it indicates IQConnect will keep trying to reconnect.

3. I was not able to fully test since markets are closed due to the holiday but IQConnect still shows the correct number of watched symbols. I will need to test on Monday.

4. TBD on Monday

MAC

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


Posted: Apr 14, 2017 08:36 AM          Msg. 4 of 6
1. How does IQConnect decide when a connection to DTN servers has failed? It there a timeout on “heartbeats”? (say my internet connection is down)

You are correct. It tests for 5s gap in data.

2. When a connection is thought to have failed, will IQConnect try indefinitely to reconnect?

Yes, it will try indefinitely.

3. If the feed reconnects, will current watches be maintained? Will I start seeing Level1 data arrive without resubscribing?

Yes,

4. On a derivative feed, will missing interval bars be replayed? ( I think not because I believe IQConnect computes these locally from tick data, but I could be wrong)

No. The system, after retrieving the history, switches over to streaming data and builds it as you mentioned. But, that would add a lot of value to the product I think. I'll write it up for a future enhancement request.

5. Is there anyway to get IQConnectLog to append instead of overwrite? Not currently. We are looking at options to improve our logging currently. Hopefully, we can make this configurable in future versions.

6. Is there a recommended maximum duration I can run IQConnect without a restart? Is 24/5 ok? or should I restart daily?

Some people leave IQFeed up for weeks at a time, but the other day I saw a 17GB log file, so I would say you might want to at least have a script that either copies the log into another file or deletes it every once in awhile so the log will remain useful.

mac
-Interested User-
Posts: 8
Joined: Apr 6, 2017


Posted: Apr 24, 2017 01:26 AM          Msg. 5 of 6
Thanks for info. I have another question.

Can you give any information about the last know service interruption IQFeed had?

When it occurred?

How long it lasted?

Which exchanges were affected?

In general, how often do you see service interruptions which are not the fault of the exchange?

MAC

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


Posted: May 1, 2017 08:29 AM          Msg. 6 of 6
I actually don't recall the last full outage we had, I started 11 years ago, so I asked if anyone remembered one and someone said it was 16 yrs ago that we had our last outage where we we had 0 data in, 0 data out. But, that was before we had our own ticker plant, so it doesn't have any relevance to today.

We have always said we maintain a 99.9% up time, but I am sure we exceed that, even at an individual exchange or server level. Of course, there could be street maintenance somewhere that cuts a fiber line, but that would impact only that given exchange and only affect one server center as major exchanges have multiple feed inputs and we would just redirect users to good servers during such an event.

We have times where we roll out updates over the weekend which could result in us having to rollback. That might happen a couple times a year. but we stagger our releases, so all systems are not affected by any one update. We also have engineered many of our systems so that they can be updated without ever bringing anything down or losing data, so an event like this may be invisible to you.

So yes, things happen, but I would say this is one area we really excel at and will continue to focus on as the product evolves. Sorry for the late reply, but hopefully this helps answer the questions.

Tim
 

 

Time: Wed October 18, 2017 8:16 AM CFBB v1.2.0 15 ms.
© AderSoftware 2002-2003