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)




"Interactive Brokers tick data was inconsistent, so I have switched to using DTN exclusively. It is great to no longer have to worry about my datafeed all day long." - Comment from Philippe
"Just a quick one to say I'm very impressed so far :) The documentation for developers is excellent and I've quickly managed to get an app written to do historical downloads. The system is very robust and pretty quick considering the extent of data that's available. The support guys have been very helpful too, in combination with the forums it's been plain sailing so far!" - Comment from Adam
"I am very happy I changed. I love the product, but more so I am thrilled with Tech Support. You are knowledgeable, polite, pleasant and professional." - Comment from Pat
"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
"As a past ******* customer(and not a happy one), IQ Feed by DTN is a much better and cheaper product with great customer support. I have had no problems at all since switching over." - Comment from Public Forum
"Thanks for following up with me. You guys do a great job in tech support." - Comment from Phelps
"It’s so nice to be working with real professionals!" - Comment from Len
"Everything is working great with the API. I love it." - Comment from Calvin
"I cannot believe what a difference it makes trading with ProphetX!" - Comment from Bruce in Los Angeles
"Can I get another account from you? I am tired of ******* going down so often" - Comment from George
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: 396
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: 396
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: 396
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: 396
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: 396
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: Fri May 10, 2024 11:56 AM CFBB v1.2.0 8 ms.
© AderSoftware 2002-2003