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)




"You have an excellent feed. Very few spikes for Spot Forex." - Comment from Public Forum Post
"Previously I was using *******. IQFeed is WAY more economical, and for my charting needs is just as good, if not better." - Comment from Public Forum Post
"I "bracket trade" all major news releases and I have not found one lag or glitch with DTN.IQ feed. I am very comfortable with their feed under all typical news conditions (Fed releases, employment numbers, etc)." - Comment from Public Forum
"The service is great, I see a noticeable improvement in my volume profiles over [broker]'s data feed" - Comment from Larry
"I am keeping IQFeed, much better reliabilty than *******. I may refer a few other people in the office to switch as well." - Comment from Don
"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've been using Neoticker RT with IQFeed for two months, and I'm very happy with both of the products (I've had IQFeed for two years with very few complaints). The service from both companies is exceptional." - Comment from Public Forum
"I used to have *******, but they are way more money for the same thing. I have had no probs with data from DTN since switching over." - Comment from Public Forum Post
"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
"Everything is working amazing now. I'm already impressed with the true-tick feed of IQFeed and it's ability to support my 480 symbol layout." - Comment from Tyler via Email
Home  Search  Register  Login  Blogs Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTN_IQFeed on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »IQFeed Developer »IQFeed Developer Support »History fetch sometimes returns "Unauthorized user ID"
Author Topic: History fetch sometimes returns "Unauthorized user ID" (10 messages, Page 1 of 1)

taa_dtn
-DTN Evangelist-
Posts: 114
Joined: May 7, 2004


Posted: Apr 19, 2017 07:17 PM          Msg. 1 of 10
I normally run an end-of-day tick history fetch for a few thousand symbols. Monday and today (Wednesday), about 95% of the fetch completed successfully, then it stopped because iqconnect returned "!ERROR! Unauthorized user ID." in response to the history request. Restarting iqconnect and re-running the fetch resolved the problem.

Tuesday there was no problem.

It might be coincidental, but the failure always occurred when fetching from the 148 servers and never when fetching from the 156 servers.

Running IQFeed version 5.2.5.0 under Wine on Linux.

Before I dive into debugging, did anything change on the 148 servers over the weekend that might account for this?

Thanks!
Allen

DTN_Tim Walter
-DTN Guru-
Posts: 1181
Joined: Apr 25, 2006


Posted: Apr 20, 2017 07:45 AM          Msg. 2 of 10
Good morning,

There was a bug that allowed users to inadvertently receive data without having the associated subscriptions on their account. This only affected historical data. The fix was released to 148 on Sunday and will be rolled out next week for 156. If you want to provide us the symbols that are failing, we can let you know which subscriptions you will want to add so that we can get you back on track.

Tim

taa_dtn
-DTN Evangelist-
Posts: 114
Joined: May 7, 2004


Posted: Apr 20, 2017 10:26 AM          Msg. 3 of 10
I'll track down the symbols, then let you know. If they're just holdovers that I'm no longer using, there won't be any need to update the subscription.

Thanks!
Allen

taa_dtn
-DTN Evangelist-
Posts: 114
Joined: May 7, 2004


Posted: Apr 20, 2017 06:47 PM          Msg. 4 of 10
Looks like it was nothing major -- just a few indexes.

Thanks!
Allen

AlexBump
-Interested User-
Posts: 3
Joined: Jul 16, 2017


Posted: Jul 16, 2017 04:38 PM          Msg. 5 of 10
> Running IQFeed version 5.2.5.0 under Wine on Linux.

How to run IQFeed under Wine on Linux, please?

Thanks!

taa_dtn
-DTN Evangelist-
Posts: 114
Joined: May 7, 2004


Posted: Jul 16, 2017 05:50 PM          Msg. 6 of 10
Install Wine. Then download the IQFeed client and install it (I used "wine iqfeed_client_5_2_5_0.exe"; just substitute the correct filename for the client that you downloaded).

You can start the IQFeed server (IQConnect) manually, or your application can start it automatically by executing the appropriate command with execl() or system(). The command will be something like "/usr/bin/wine /YOUR_HOME_DIRECTORY/.wine/drive_c/Program Files/DTN/IQFeed/iqconnect.exe -product YOUR_REGISTERED_PRODUCT_NAME -version YOUR_REGISTERED_PRODUCT_VERSION -login YOUR_LOGIN_ID -password YOUR_PASSWORD -autoconnect".

Once IQConnect has started your app can connect to the TCP ports and issue commands as described in the Developer Documentation.

AlexBump
-Interested User-
Posts: 3
Joined: Jul 16, 2017


Posted: Jul 17, 2017 12:47 AM          Msg. 7 of 10
Thank you for your reply!
I have installed the wine and IQFeed but still can not connect to it
I have got this log file (see below)
Could you comment this line, please?
STATUS Information 67 0 2017-07-17 08:41:07 Ping Failed - unable to open icmp file handle error: 5

What have I to do to fix this error, please?

Thanks!
Ubuntu 16.04 64bit
---------------------------
.....
STATUS Connectivity 70 0 2017-07-17 08:41:02 Setting symbol limit to 200
STATUS Information 67 0 2017-07-17 08:41:02 LAST CLIENT DISCONNECTED. SHUTTING DOWN IN 5 SEC.
STATUS Connectivity 70 0 2017-07-17 08:41:03 Connection to server 0 closed.
STATUS Connectivity 70 0 2017-07-17 08:41:03 Connection to server (0) closed gracefully.
STATUS Connectivity 67 0 2017-07-17 08:41:03 Authentication Complete - Debug value = 1
STATUS Connectivity 70 0 2017-07-17 08:41:03 0 products left to authenticate. Ready
STATUS Connectivity 70 0 2017-07-17 08:41:03 Resetting socket in authentication thread.
STATUS Connectivity 67 0 2017-07-17 08:41:03 Login Initiated without IQ32.dll
STATUS Information 67 0 2017-07-17 08:41:03 SHUTTING DOWN IN 4 SEC.
STATUS Information 67 0 2017-07-17 08:41:04 SHUTTING DOWN IN 3 SEC.
STATUS Information 67 0 2017-07-17 08:41:05 SHUTTING DOWN IN 2 SEC.
STATUS Information 67 0 2017-07-17 08:41:06 SHUTTING DOWN IN 1 SEC.
STATUS Information 67 0 2017-07-17 08:41:07 SHUTTING DOWN.
STATUS Information 67 0 2017-07-17 08:41:07 Ping Failed - unable to open icmp file handle error: 5
STATUS Connectivity 69 0 2017-07-17 08:41:08 Authorizations Thread shutting down (156384765) - Context was terminated
STATUS Information 67 0 2017-07-17 08:41:08 IQConnect Exit
Edited by AlexBump on Jul 17, 2017 at 12:48 AM
Edited by AlexBump on Jul 17, 2017 at 04:33 AM

taa_dtn
-DTN Evangelist-
Posts: 114
Joined: May 7, 2004


Posted: Jul 17, 2017 11:30 AM          Msg. 8 of 10
I don't have any information about the "Ping Failed" line. However, the rest of the log indicates that IQConnect started successfully but no app connected to the administration port (9300). IQConnect eventually shuts down if there are no connections to that port.

Before IQConnect shuts down, can you run one of the other IQFeed apps to see if it works properly? If so, the next place to look is in your app. If not, there are other possibilities; a firewall issue, for example.

One other thing occurs to me. You might be having trouble running IQConnect if Wine is in 64-bit mode. This happened to me in the past, and I worked around it, but I don't know if it's still an issue. To try the workaround, set the environment variable WINEARCH to "win32" before running IQConnect.

DTN_Tim Walter
-DTN Guru-
Posts: 1181
Joined: Apr 25, 2006


Posted: Jul 17, 2017 11:40 AM          Msg. 9 of 10
Thanks for the assist on this taa daa. You are correct I think everything is working as designed here.

Though you would not get connected at all if it was firewall, and an issue where WINE was failing would look different as well. I think if you open a socket to port 9300 to hold the feed open you will see this behavior stop. As taa daa mentioned, you could also open IQ WatchQuote and you will be able to test and see that things are working as designed.

Tim

AlexBump
-Interested User-
Posts: 3
Joined: Jul 16, 2017


Posted: Jul 18, 2017 08:52 AM          Msg. 10 of 10
All ports are open.
I will test your guide.
Thank you! :)
 

 

Time: Mon June 25, 2018 2:55 AM CFBB v1.2.0 15 ms.
© AderSoftware 2002-2003