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
"And by the way, have to say this. I love the IQFeed software. It's rock solid and it has a really nice API." - Comment from Thomas via RT Chat
"My broker in Davenport suggested I give you a try as he uses your service and says its the best." - Comment from Bill via RT Chat
"If someone needs the best quality data and backfill beyond what their broker provides at a rate that is the best in the industry, I highly recommend IQFeed." - Comment from Josh via Public Forum
"There is no doubt that IQFeed is the best data provider. I am very satisfied with your services. And IQFeed is the only one that I would recommend to my friends. Now, most of them are using your product in China." - Comment from Zhezhe
"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 was on the phone with a friend who uses CQG and right after the Fed announcement, CQG was as much as 30 seconds behind DTN.IQ. Some quotes were off by as much as 15-18 cents. Your feed never missed a beat." - Comment from Roger
"I like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"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
"I just wanted to say how happy I am with your service. I was able to download the API docs last week and I was able to replicate Interactive Brokers historical bar queries and realtime bar queries over the weekend. That was about one of the fastest integrations that I've ever done and it works perfectly!!!!" - Comment from Jason 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: 115
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: 1224
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: 115
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: 115
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: 115
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: 115
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: 1224
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: Wed September 19, 2018 2:18 PM CFBB v1.2.0 31 ms.
© AderSoftware 2002-2003