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)




"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
"I started a trial a few weeks back before the market went wild. DTN.IQ didn’t miss anything and beat my other provider. I decided to stay with you because of the great service through all the volatility." - Comment from Mike
"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'm satisfied with IQFeed. It's the most reliable and fastest quote feed I have ever used. Although I'm a resident in China, it's still very fast!" - Comment from Xiaofei
"I have to tell you though that using the IQFeed API is about the easiest and cleanest I have seen for some time." - Comment from Jim
"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
"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
"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
"I had always used ******* but for the past 2 weeks have been trying DTN IQFeed. Customer support has been extraordinary. They call just to make sure your problem hasn't recurred." - Comment from Public Forum
"I just wanted to tell you what a fine job you have been doing. While *******, from what I hear, has been down and out, off and on, IQ feed has held like a champ this week." - Comment from Shirin
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
Viewing User Profile for: karunkrishna
About Contact
Joined: Dec 23, 2017 09:32 PM
Last Post: Dec 24, 2017 07:40 PM
Last Visit: Dec 24, 2017 07:47 PM
Website:  
Location:
Occupation:
Interests:
Avatar:
Email: karun.krishna@gmail.com
AIM:
ICQ:
MSN IM:
Yahoo IM:
Post Statistics
karunkrishna has contributed to 5 posts out of 18307 total posts (0.03%) in 26 days (0.19 posts per day).

20 Most recent posts:

That did help.
Looks like you need to keep a socket open or it kicks you out after 5 second.
The error log doesn't suggest that in the file attached...but I believe that is because I was not opening the required ports properly.

You can consider this closed.


Able to get further by launching process as headless. Using command below. However does not appear to connect like windows.
Not sure If I need to send another command to keep connection connected.

xvfb-run -s -noreset -a wine iqconnect.exe -product ##APP_ID## -login ##USER## -password ##PASS## -autoconnect -savelogininfo



tail: IQConnectLog.txt: file truncated
=== IQConnect Log File Opened On Sun Dec 24 19:44:44 ===
Current Log Levels,Connectivity,Information,Admin
Current IQFeed Version,5.2.6.0
STATUS Connectivity 43 0 2017-12-24 19:44:44 Creating trader account verification thread. Status idle
STATUS Connectivity 45 0 2017-12-24 19:44:44 Initializing the login thread
STATUS Connectivity 9 0 2017-12-24 19:44:44 Getting login from registry: ##USER##)
STATUS Connectivity 9 0 2017-12-24 19:44:44 Getting Password from registry: (8 characters)
STATUS Connectivity 9 0 2017-12-24 19:44:44 Processing Command Line
STATUS Connectivity 9 0 2017-12-24 19:44:44 Received product ID from 3rd party application: (26 characters)
STATUS Connectivity 9 0 2017-12-24 19:44:44 Received login from 3rd party application: (##USER##)
STATUS Connectivity 9 0 2017-12-24 19:44:44 Recieved password from 3rd party application: (8 characters)
STATUS Connectivity 9 0 2017-12-24 19:44:44 Received autoconnect from 3rd party application
STATUS Connectivity 9 0 2017-12-24 19:44:44 Received savelogininfo from 3rd party application
STATUS Connectivity 9 0 2017-12-24 19:44:44 Ignoring autoconnect from 3rd party application because we don't have credentials yet.
STATUS Connectivity 9 0 2017-12-24 19:44:44 Ignoring savelogininfo from 3rd party application because we don't have credentials yet.
STATUS Information 9 0 2017-12-24 19:44:44 Initialization complete.
STATUS Connectivity 45 0 2017-12-24 19:44:44 Retrieving IP addresses.
STATUS Connectivity 45 0 2017-12-24 19:44:44 Connecting to server (login.interquote.com) on port 60020.
STATUS Connectivity 45 0 2017-12-24 19:44:44 Connect Process: Status 1.
STATUS Connectivity 45 0 2017-12-24 19:44:44 Connect Process: Status 2.
STATUS Connectivity 45 0 2017-12-24 19:44:44 Connect Process: Status 3.
STATUS Connectivity 45 0 2017-12-24 19:44:44 Connected to server 14.
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 0 (66.112.156.213:60000)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 1 (66.112.156.181:60004)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 2 (66.112.156.215:60002)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 3 (66.112.156.211:60009)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 4 (66.112.156.213:60001)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 5 (66.112.156.213:60005)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 6 (66.112.156.213:60012)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 7 (66.112.156.200:60003)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 8 (66.112.156.209:60015)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 9 (66.112.156.216:60050)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 10 (66.112.156.213:60014)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 11 (66.112.156.218:60003)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 12 (66.112.156.212:60016)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 13 (66.112.156.208:60018)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Connection to server 14 closed.
STATUS Connectivity 45 0 2017-12-24 19:44:44 Connection to server (14) closed gracefully.
STATUS Connectivity 45 0 2017-12-24 19:44:44 0 products left to authenticate. Ready
STATUS Connectivity 45 0 2017-12-24 19:44:44 Resetting socket in authentication thread.


Also when I run wine on iqconnect.exe or iqfeed_client.exe (setup exe)

I get the following error. Not sure if I need to add any arguments to wine, etc.

ubuntu@ip-172-31-44-131:~/iqfeed$ wine iqfeed_client.exe
err:winediag:nulldrv_CreateWindow Application tried to create a window, but no driver could be loaded.
err:winediag:nulldrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.

ubuntu@ip-172-31-44-131:~/iqfeed$ echo $DISPLAY
:0
Edited by karunkrishna on Dec 24, 2017 at 01:04 PM


Let me try that aswell. Do you mean the run wine on iqfeed_client.exe (http://www.iqfeed.net/iqfeed_client.exe)?

Copying over mcf110.dll seemed to where iqconnect.exe was located seem to get be future.
For example. it created the DTN folder and the following log statement. But Wine terminates right away.
Log statement below and what wine exported below that (fyi)

This is in the IQConnectLog.txt file

=== IQConnect Log File Opened On Sun Dec 24 18:36:32 ===
Current Log Levels,Connectivity,Information,Admin
Current IQFeed Version,5.2.6.0
STATUS Connectivity 42 0 2017-12-24 18:36:32 Creating trader account verification thread. Status idle
STATUS Connectivity 44 0 2017-12-24 18:36:32 Initializing the login thread
STATUS Connectivity 9 0 2017-12-24 18:36:32 Getting login from registry: ##USER###
STATUS Connectivity 9 0 2017-12-24 18:36:32 Getting Password from registry: (8 characters)
STATUS Connectivity 9 0 2017-12-24 18:36:32 Processing Command Line
STATUS Connectivity 9 0 2017-12-24 18:36:32 Received product ID from 3rd party application: (26 characters)
STATUS Connectivity 9 0 2017-12-24 18:36:32 Received login from 3rd party application: (##USER###)
STATUS Connectivity 9 0 2017-12-24 18:36:32 Recieved password from 3rd party application: (8 characters)
STATUS Connectivity 9 0 2017-12-24 18:36:32 Received autoconnect from 3rd party application
STATUS Connectivity 9 0 2017-12-24 18:36:32 Received savelogininfo from 3rd party application
STATUS Connectivity 9 0 2017-12-24 18:36:32 Ignoring autoconnect from 3rd party application because we don't have credentials yet.
STATUS Connectivity 9 0 2017-12-24 18:36:32 Ignoring savelogininfo from 3rd party application because we don't have credentials yet.
STATUS Information 9 0 2017-12-24 18:36:32 Initialization complete.
STATUS Connectivity 44 0 2017-12-24 18:36:32 Retrieving IP addresses.
STATUS Connectivity 44 0 2017-12-24 18:36:32 Connecting to server (login.interquote.com) on port 60020.
STATUS Connectivity 44 0 2017-12-24 18:36:32 Connect Process: Status 1.
STATUS Connectivity 44 0 2017-12-24 18:36:32 Connect Process: Status 2.
STATUS Connectivity 43 0 2017-12-24 18:36:32 Authorizations Thread shutting down (156384765) - Context was terminated




ubuntu@ip-172-31-44-131:~/iqfeed$ wine iqconnect.exe -product ##APP_ID## -login ##USER###-password ##PASS## -autoconnect -savelogininfo
err:winediag:nulldrv_CreateWindow Application tried to create a window, but no driver could be loaded.
err:winediag:nulldrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.


I use the iqconnect.exe on my windows machine with no problem. But I want to move my algo to AWS Ubuntu instance for more reliable automation.

I have been troubleshooting on stack-overflow but kind of stuck.

When I run the following command [IN] the following output [OUT] results below:

[IN]
ubuntu@ip_address:~/iqfeed$ wine iqconnect.exe -product ##APP_ID## -login ##USER## -password ##PASS## -autoconnect -savelogininfo

[OUT]
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:systray:initialize_systray Could not create tray window
err:module:import_dll Library mfc110.dll (which is needed by L"Z:\\home\\ubuntu\\iqfeed\\iqconnect.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"Z:\\home\\ubuntu\\iqfeed\\iqconnect.exe" failed, status c0000135

not sure how to address this issue.

Do i need to find mfc100.dll from my local windows PC and save it in the directory "\home\ubuntu\iqfeed\"?



My configurations are:

configuration:wine-1.6.2
the iqconnect.exe i have copied over came from the following build 5.2.6.0

Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
4.4.0-1041-aws #50-Ubuntu SMP Wed Nov 15 22:18:17 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


Quote:



Time: Wed January 17, 2018 3:14 AM CFBB v1.2.0 16 ms.
© AderSoftware 2002-2003