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 was on the phone with a friend who uses CQG and right after the Fed announcement, CQG was as much as 30 seconds behind DTN.IQ. Some quotes were off by as much as 15-18 cents. Your feed never missed a beat." - Comment from Roger
"Thank God for your Data Feed as the only Zippers I see are on my pants (LOL), and no more 200 pip spikes to mess up charts." - Comment from Spiro via Email
"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
"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
"I was with ******* for 4 years at $230 a month, this is a huge savings for me, GOD BLESS YOU PEOPLE," - Comment from T.S. via Email
"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
"The service is great, I see a noticeable improvement in my volume profiles over [broker]'s data feed" - Comment from Larry
"If someone needs the best quality data and backfill beyond what their broker provides at a rate that is the best in the industry, I highly recommend IQFeed." - Comment from Josh via Public Forum
"This beats the pants off CQG, I am definitely switching to the ProphetX 3.0!" - Comment from Stephen
"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
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: Tue May 7, 2024 12:35 AM CFBB v1.2.0 17 ms.
© AderSoftware 2002-2003