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
"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 like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"DTN has never given me problems. It is incredibly stable. In fact I've occasionally lost the data feed from Interactive Brokers, but still been able to trade because I'm getting good data from DTN." - Comment from Leighton
"Thanks for following up with me. You guys do a great job in tech support." - Comment from Phelps
"You have an excellent product !!!!!!" - Comment from Arely
"Boy, probably spent a thousand hours trying to get ******* API to work right. And now two hours to have something running with IQFeed. Hmmm, guess I was pretty stupid to fight rather than switch all this time. And have gotten more customer service from you guys already than total from them… in five years." - Comment from Jim
"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 would just like to say that IQFeed version 4 is running very well and I am very happy with its performance. I would also like to extend a big thanks for the fast and efficient help that I always receive. My questions and concerns are always addressed promptly. Way to go!" - Comment from Josh in CO.
"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  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 »NEW IQFEED FORUMS »IQFeed API Questions »IQFeed Exiting After Reconnect.
Author Topic: IQFeed Exiting After Reconnect. (11 messages, Page 1 of 1)

Craig
-DTN Guru-
Posts: 326
Joined: Apr 16, 2010


Posted: Apr 21, 2023 01:19 PM          Msg. 1 of 11
Hi,

I'm now getting application exits after a reconnect, here is the log...

STATUS Connectivity 5540 0 2023-04-21 02:15:06 Setting symbol limit to 500
STATUS Connectivity 5540 0 2023-04-21 02:15:06 Processed Server 15 (12.36.218.145:60002)
STATUS Connectivity 5540 0 2023-04-21 02:15:06 Connection to server 0 closed.
STATUS Connectivity 5540 0 2023-04-21 02:15:06 Connection to server (0) closed gracefully.
STATUS Connectivity 5540 0 2023-04-21 02:15:06 0 products left to authenticate. Ready
STATUS Connectivity 4012 0 2023-04-21 02:15:06 Authentication Complete - Debug value = 1
STATUS Connectivity 5540 0 2023-04-21 02:15:06 Resetting socket in authentication thread.
STATUS Connectivity 4012 0 2023-04-21 02:15:06 Connecting to quote server (12.36.218.145, 60002).
STATUS Connectivity 4012 0 2023-04-21 02:15:06 Login Initiated without IQ32.dll
STATUS Connectivity 4012 0 2023-04-21 02:15:06 Successful connection to quote server made.
STATUS Connectivity 4012 0 2023-04-21 02:15:21 Sorry, your Product and/or Service for the attempted login are incorrect. If you have recently changed products you may also need to change your type of service. Please contact DTN customer support for assistance. (1) : 2
STATUS Connectivity 4012 0 2023-04-21 02:15:21 WAITING FOR 9 LOOKUP THREADS TO EXIT
STATUS Information 8588 4 2023-04-21 02:15:21 LOOKUP SOCKET CLOSED -
STATUS Information 8128 6 2023-04-21 02:15:21 LOOKUP SOCKET CLOSED -
STATUS Information 7664 1 2023-04-21 02:15:21 LOOKUP SOCKET CLOSED -
STATUS Information 5912 2 2023-04-21 02:15:21 LOOKUP SOCKET CLOSED -

What is happening here?

DTN_Gary_Stephen
-DTN Guru-
Posts: 394
Joined: Jul 3, 2019


Posted: Apr 25, 2023 11:15 AM          Msg. 2 of 11
It looks like your credentials are being rejected by the serer. Have any of them changed recently? These values are stored in the registry inside Computer\HKEY_CURRENT_USER\Software\DTN\IQFeed\Startup.

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist

Craig
-DTN Guru-
Posts: 326
Joined: Apr 16, 2010


Posted: Apr 25, 2023 01:15 PM          Msg. 3 of 11
Not that I'm aware of. It subsequently started, so I don't see how the details could have changed.

DTN_Gary_Stephen
-DTN Guru-
Posts: 394
Joined: Jul 3, 2019


Posted: Apr 25, 2023 01:35 PM          Msg. 4 of 11
It looks like you're using version 6.1 of the IQFeed client software. This may be a bug that was fixed in 6.2: "Fixed bug causing IQFeed to occasionally try to authenticate an invalid product ID, resulting in customers getting an error stating their product or service is invalid." Is there a reason you're using the older version, or can you update the client software to 6.2 via http://www.iqfeed.net/index.cfm?displayaction=support§ion=download ?

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist

Craig
-DTN Guru-
Posts: 326
Joined: Apr 16, 2010


Posted: Apr 25, 2023 02:48 PM          Msg. 5 of 11
Thank you, I wasn't aware of that. I will upgrade.

Craig
-DTN Guru-
Posts: 326
Joined: Apr 16, 2010


Posted: Apr 28, 2023 08:42 PM          Msg. 6 of 11
Are the documentation examples correct for 6.2? Looking at the documentation, here is an example of a data lookup:

Request: HTX,@ES#,10,1,TESTREQUEST<CR><LF>
TESTREQUEST,2019-04-09 15:06:08.639682,2880.75,1,925411,2880.50,2880.75,27293384,C,43,113565084,01,1,9,<CR><LF>
TESTREQUEST,2019-04-09 15:06:08.639724,2880.75,2,925413,2880.50,2880.75,27293385,C,43,113565084,01,1,9,<CR><LF>
TESTREQUEST,2019-04-09 15:06:08.648229,2880.75,1,925414,2880.75,2881.00,27293386,C,43,113565084,01,2,9,<CR><LF>
TESTREQUEST,2019-04-09 15:06:08.648455,2880.75,1,925415,2880.75,2881.00,27293387,C,43,113565084,01,2,9,<CR><LF>
TESTREQUEST,2019-04-09 15:06:08.691246,2880.75,1,925416,2880.75,2881.00,27293388,C,43,113565084,01,2,9,<CR><LF>
TESTREQUEST,2019-04-09 15:06:09.418485,2881.00,1,925417,2880.75,2881.00,27293389,C,43,113565084,01,1,9,<CR><LF>
TESTREQUEST,2019-04-09 15:06:10.018122,2880.75,1,925418,2880.75,2881.00,27293390,C,43,113565084,01,2,9,<CR><LF>
TESTREQUEST,2019-04-09 15:06:10.018122,2880.75,1,925419,2880.75,2881.00,27293390,C,43,113565084,01,2,9,<CR><LF>
TESTREQUEST,2019-04-09 15:06:10.751536,2880.75,1,925420,2880.75,2881.00,27293391,C,43,113565084,01,2,9,<CR><LF>
TESTREQUEST,2019-04-09 15:06:11.185941,2880.75,1,925421,2880.75,2881.00,27293392,C,43,113565084,01,2,9,<CR><LF>
TESTREQUEST,!ENDMSG!,<CR><LF>

I don't see the LH message id in here? Am I understanding where the new message ids are correctly?

DTN_Gary_Stephen
-DTN Guru-
Posts: 394
Joined: Jul 3, 2019


Posted: May 1, 2023 09:32 AM          Msg. 7 of 11
LH will only appear if you are sending S,SET PROTOCOL 6.2 after you connect to the socket. You couldn't do this before, because you were on version 6.1 of the client software, and you can't request a later protocol than the client software.

You must be sending some protocol command, though, because that response doesn't look the default 4.9, or even 6.1. Just change it to 6.2 and the response will match the documentation you found.

"LH" is a Lookup Data Message Identifier as described at https://www.iqfeed.net/dev/upgrade.cfm?protocol=2 and is a new feature in Protocol 6.2.

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist

Craig
-DTN Guru-
Posts: 326
Joined: Apr 16, 2010


Posted: May 1, 2023 01:28 PM          Msg. 8 of 11
The example above is copy / pasted from the current documentation.

DTN_Gary_Stephen
-DTN Guru-
Posts: 394
Joined: Jul 3, 2019


Posted: May 1, 2023 01:51 PM          Msg. 9 of 11
Where are you finding that?

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist

Craig
-DTN Guru-
Posts: 326
Joined: Apr 16, 2010


Posted: May 1, 2023 02:16 PM          Msg. 10 of 11
http://www.iqfeed.net/dev/api/docs//HistoricalviaTCPIP.cfm

As accessed through: "View the latest IQFeed 6.2 documentation OnLine!"

DTN_Gary_Stephen
-DTN Guru-
Posts: 394
Joined: Jul 3, 2019


Posted: May 1, 2023 02:19 PM          Msg. 11 of 11
Oh, I see what you mean. It looks the sample results weren't updated for protocol 6.2. We are correcting this now.

To your original question, the response should look like this. The LH appears after the RequestID, if you use a RequestID (and this example does):

HTX,@ES#,10,1,TESTREQUEST
TESTREQUEST,LH,2023-05-01 15:21:07.369346,4189.25,1,966275,4189.00,4189.25,27261 705,C,43,01,1,1,
TESTREQUEST,LH,2023-05-01 15:21:07.369346,4189.25,1,966276,4189.00,4189.25,27261 705,C,43,01,1,1,
TESTREQUEST,LH,2023-05-01 15:21:07.369346,4189.25,4,966280,4189.00,4189.25,27261 705,C,43,01,1,1,
TESTREQUEST,LH,2023-05-01 15:21:07.643658,4189.50,1,966281,4189.25,4189.50,27261 706,C,43,01,1,1,
TESTREQUEST,LH,2023-05-01 15:21:07.743142,4189.50,1,966282,4189.25,4189.50,27261 707,C,43,01,1,1,
TESTREQUEST,LH,2023-05-01 15:21:07.743142,4189.50,2,966284,4189.25,4189.50,27261 707,C,43,01,1,1,
TESTREQUEST,LH,2023-05-01 15:21:07.743142,4189.50,1,966285,4189.25,4189.50,27261 707,C,43,01,1,1,
TESTREQUEST,LH,2023-05-01 15:21:07.743142,4189.50,1,966286,4189.25,4189.50,27261 707,C,43,01,1,1,
TESTREQUEST,LH,2023-05-01 15:21:07.743451,4189.50,1,966287,4189.25,4189.50,27261 708,C,43,01,1,1,
TESTREQUEST,LH,2023-05-01 15:21:07.743451,4189.50,4,966291,4189.25,4189.50,27261 708,C,43,01,1,1,
TESTREQUEST,!ENDMSG!,

Without the RequestID, you'd get:

HTX,@ES#,10,1
LH,2023-05-01 15:22:08.630492,4189.25,1,968320,4189.00,4189.25,27262315,C,43,01,1,1,
LH,2023-05-01 15:22:08.640212,4189.25,1,968321,4189.00,4189.25,27262316,C,43,01,1,1,
LH,2023-05-01 15:22:09.023869,4189.25,1,968322,4189.00,4189.25,27262317,C,43,01,1,1,
LH,2023-05-01 15:22:09.032103,4189.25,1,968323,4189.00,4189.25,27262318,C,43,01,1,1,
LH,2023-05-01 15:22:09.032332,4189.25,1,968324,4189.00,4189.25,27262319,C,43,01,1,1,
LH,2023-05-01 15:22:09.037984,4189.25,1,968325,4189.00,4189.25,27262320,C,43,01,1,1,
LH,2023-05-01 15:22:09.365253,4189.25,1,968326,4189.00,4189.25,27262321,C,43,01,1,1,
LH,2023-05-01 15:22:09.446788,4189.25,1,968327,4189.00,4189.25,27262322,C,43,01,1,1,
LH,2023-05-01 15:22:09.519289,4189.25,1,968328,4189.00,4189.25,27262323,C,43,01,1,1,
LH,2023-05-01 15:22:09.604320,4189.25,1,968329,4189.00,4189.25,27262324,C,43,01,1,1,
!ENDMSG!,



Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist

Edited by DTN_Gary_Stephen on May 1, 2023 at 02:22 PM
 

 

Time: Thu April 25, 2024 8:30 AM CFBB v1.2.0 11 ms.
© AderSoftware 2002-2003