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)




"Thanks for the great product and support. During this week of high volume trading, my QuoteTracker + IQ Feed setup never missed a beat. Also, thanks for your swiftness in responding to data issues. I was on ******* for a few years before I made the switch over early this year, and wish I had done it a long time ago." - Comment from Ken
"Everything is working great ! Very impressive client. The news refreshes better and is more pertinent than the ******* feed I paid $ 100/month for. I Also like the charts a lot." - Comment from Leon
"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
"Thank you so much - awesome feed, awesome service!" - Comment from Greg via Email
"The people at Nirvana have very nice things to say about your company and I can see why! Price and service is a potent combination." - Comment from Ed
"It’s so nice to be working with real professionals!" - Comment from Len
"Thanks for all of your help. Great customer service deserves to be recognized which one the reasons I've been a customer of DTN for over 10 years!" - Comment from Stuart
"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
"This beats the pants off CQG, I am definitely switching to the ProphetX 3.0!" - Comment from Stephen
"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
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 »Archive (2017 and earlier) »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: 154
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: 1238
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: 154
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: 154
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: 154
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: 154
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: 1238
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: Fri April 19, 2024 11:12 AM CFBB v1.2.0 12 ms.
© AderSoftware 2002-2003