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).
|