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 have to tell you though that using the IQFeed API is about the easiest and cleanest I have seen for some time." - Comment from Jim
"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
"Thanks for following up with me. You guys do a great job in tech support." - Comment from Phelps
"Everything is working great with the API. I love it." - Comment from Calvin
"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
"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
"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
"I've been using IQFeed 4 in a multi-threaded situation for the last week or two on 2600 symbols or so with 100 simultaneous daily charts, and I have had 100% responsiveness." - Comment from Scott
"It’s so nice to be working with real professionals!" - Comment from Len
"This beats the pants off CQG, I am definitely switching to the ProphetX 3.0!" - Comment from Stephen
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 »Connection reset problem
Author Topic: Connection reset problem (3 messages, Page 1 of 1)

sappjason
-Interested User-
Posts: 8
Joined: Nov 5, 2009


Posted: Jan 6, 2010 03:50 PM          Msg. 1 of 3
Hello,
Perhaps I'm doing something wrong, but I just wanted to make sure. I have an automated trading system (written in Java) that connects to IQFeed as follows:

RegisterClientApp("XXXXXXX", "1.0", "0.11111111");

All is well and good and my ATS runs just fine. The problem is that my ATS doesn't shut itself down until 4:30 PM. However, at 4:05, I have another application that starts up and collects tick data for the current day. This application uses the exact same RegisterClientApp () call.

The problem happens when my ATS shuts down. Basically, when my ATS shuts down, my running data collector application gets a connection reset error on the open socket to IQFeed. I'm just wondering what I'm doing wrong? Should I be calling RegisterClientApp with a different 3rd parameter or is this just the way it works and I'm doing things incorrectly and perhaps I shouldn't be trying to have two different processes connecting to IQFeed at the same time (from the same machine)?

Any thoughts out there?

Jason

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


Posted: Jan 6, 2010 03:55 PM          Msg. 2 of 3
Jason, IQConnect will remain running as long as there is a connection to the Level 1 port. As soon as the last level 1 connection disconnects, IQConnect shuts itself down.

I would recommend simply adding a "dummy" connection to the level 1 port in your history retrieval app that just reads the data off the socket and throws it away (there will be a small amount of data like timestamps delivered even if you don't watch any symbols).

sappjason
-Interested User-
Posts: 8
Joined: Nov 5, 2009


Posted: Jan 7, 2010 11:02 AM          Msg. 3 of 3
Thanks Steve. I'll give that a try.....

Jason
 

 

Time: Thu May 2, 2024 9:21 PM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003