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)




"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
"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 like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"DTN has never given me problems. It is incredibly stable. In fact I've occasionally lost the data feed from Interactive Brokers, but still been able to trade because I'm getting good data from DTN." - Comment from Leighton
"Thanks for following up with me. You guys do a great job in tech support." - Comment from Phelps
"You have an excellent product !!!!!!" - Comment from Arely
"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 have been using IQFeed now for a few years in MultiCharts and I have zero complaints. Very, very rare to have any data hiccups or anything at all go wrong." - Comment from Public Forum
"I would just like to say that IQFeed version 4 is running very well and I am very happy with its performance. I would also like to extend a big thanks for the fast and efficient help that I always receive. My questions and concerns are always addressed promptly. Way to go!" - Comment from Josh in CO.
"This is an excellent value, the system is generous (allowing for 500 stocks) and stable (and really is tick-by-tick), and the support is fantastic." - Comment from Shirin 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
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 21185 total posts (0.02%) in 2,316 days (0.00 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: Thu April 25, 2024 8:30 AM CFBB v1.2.0 6 ms.
© AderSoftware 2002-2003