![](images/blank.gif)
Craig
-DTN Guru-
Posts: 326
Joined: Apr 16, 2010
|
Posted: Apr 21, 2023 01:19 PM
![Reply To Post](images/icon_reply_topic.gif)
Msg. 1 of 12
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?
|
![](images/blank.gif)
DTN_Gary_Stephen
-DTN Guru-
Posts: 403
Joined: Jul 3, 2019
|
Posted: Apr 25, 2023 11:15 AM
![Reply To Post](images/icon_reply_topic.gif)
Msg. 2 of 12
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
|
![](images/blank.gif)
Craig
-DTN Guru-
Posts: 326
Joined: Apr 16, 2010
|
Posted: Apr 25, 2023 01:15 PM
![Reply To Post](images/icon_reply_topic.gif)
Msg. 3 of 12
Not that I'm aware of. It subsequently started, so I don't see how the details could have changed.
|
![](images/blank.gif)
DTN_Gary_Stephen
-DTN Guru-
Posts: 403
Joined: Jul 3, 2019
|
Posted: Apr 25, 2023 01:35 PM
![Reply To Post](images/icon_reply_topic.gif)
Msg. 4 of 12
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
|
![](images/blank.gif)
Craig
-DTN Guru-
Posts: 326
Joined: Apr 16, 2010
|
Posted: Apr 25, 2023 02:48 PM
![Reply To Post](images/icon_reply_topic.gif)
Msg. 5 of 12
Thank you, I wasn't aware of that. I will upgrade.
|
![](images/blank.gif)
Craig
-DTN Guru-
Posts: 326
Joined: Apr 16, 2010
|
Posted: Apr 28, 2023 08:42 PM
![Reply To Post](images/icon_reply_topic.gif)
Msg. 6 of 12
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?
|
![](images/blank.gif)
DTN_Gary_Stephen
-DTN Guru-
Posts: 403
Joined: Jul 3, 2019
|
Posted: May 1, 2023 09:32 AM
![Reply To Post](images/icon_reply_topic.gif)
Msg. 7 of 12
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
|
![](images/blank.gif)
Craig
-DTN Guru-
Posts: 326
Joined: Apr 16, 2010
|
Posted: May 1, 2023 01:28 PM
![Reply To Post](images/icon_reply_topic.gif)
Msg. 8 of 12
The example above is copy / pasted from the current documentation.
|
![](images/blank.gif)
DTN_Gary_Stephen
-DTN Guru-
Posts: 403
Joined: Jul 3, 2019
|
Posted: May 1, 2023 01:51 PM
![Reply To Post](images/icon_reply_topic.gif)
Msg. 9 of 12
Where are you finding that?
Sincerely, Gary Stephen DTN IQFeed Implementation Support Specialist
|
![](images/blank.gif)
Craig
-DTN Guru-
Posts: 326
Joined: Apr 16, 2010
|
Posted: May 1, 2023 02:16 PM
![Reply To Post](images/icon_reply_topic.gif)
Msg. 10 of 12
|
![](images/blank.gif)
DTN_Gary_Stephen
-DTN Guru-
Posts: 403
Joined: Jul 3, 2019
|
Posted: May 1, 2023 02:19 PM
![Reply To Post](images/icon_reply_topic.gif)
Msg. 11 of 12
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
|
![](images/blank.gif)
sarausa
-Interested User-
Posts: 5
Joined: Jul 8, 2024
|
Posted: Jul 8, 2024 09:55 PM
![Reply To Post](images/icon_reply_topic.gif)
Msg. 12 of 12
Based on the logs you provided, it seems your application is having trouble reconnecting and authenticating to the server. https://aarouteplanner.io
|
|
|
|