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 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
"Everything is working great ! Very impressive client. The news refreshes better and is more pertinent than the ******* feed I paid $ 100/month for. I Also like the charts a lot." - Comment from Leon
"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
"I will tell others who want to go into trading that DTN ProphetX is an invaluable tool, I don't think anyone can trade without it..." - Comment from Luther
"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
"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
"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 have been using IQFeed now for a few years in MultiCharts and I have zero complaints. Very, very rare to have any data hiccups or anything at all go wrong." - Comment from Public Forum
"I "bracket trade" all major news releases and I have not found one lag or glitch with DTN.IQ feed. I am very comfortable with their feed under all typical news conditions (Fed releases, employment numbers, etc)." - Comment from Public Forum
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 »IQConnect disconnect behavior
Author Topic: IQConnect disconnect behavior (6 messages, Page 1 of 1)

mac
-Interested User-
Posts: 25
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: 25
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: 25
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: 1238
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: 25
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: 1238
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: Sat April 27, 2024 12:37 AM CFBB v1.2.0 16 ms.
© AderSoftware 2002-2003