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)




"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
"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
"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
"For anyone considering using DTN.IQ for a data feed, my experience with the quality of data and the tech support has been very positive." - Comment from Public Forum
"Thank God for your Data Feed as the only Zippers I see are on my pants (LOL), and no more 200 pip spikes to mess up charts." - Comment from Spiro via Email
"I just wanted to let you know how fast and easy I found it to integrate IQFeed into our existing Java code using your JNI client. In my experience, such things almost never go so smoothly - great job!" - Comment from Nate
"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
"Version 4.0.0.2 has been working well for me and I appreciate that it is now a much tighter client to work with. I feel I can go to press with my own application and rely on a stable platform" - Comment from David in IA.
"I am a hedge fund manager here. It’s funny, I have a Bloomberg terminal and a Bridge feed, but I still like having my DTN feed!" - Comment from Feras
"If you want customer service that answers the phone, your best bet is IQFeed. I cannot stop praising them or their technical support. They are always there for you, and they are quick. I have used ****** too but the best value is IQFeed." - Comment from Public Forum
Home  Search  Register  Login  Blogs Recent Posts

Information on Various DTN Products:
DTN IQFeed | DTN ProphetX | DTN Ag | NxCore
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: 1064
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: 1064
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: Sat October 21, 2017 1:31 AM CFBB v1.2.0 15 ms.
© AderSoftware 2002-2003