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)




"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
"I cannot believe what a difference it makes trading with ProphetX!" - Comment from Bruce in Los Angeles
"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'm very glad I switched to IQFeed. It's working perfectly with no lag, even during fast market conditions." - Comment from Andy via Email
"You are either overstaffed or people just don't have problems with your feed because customer support always answers the phone quickly." - Comment from Jay via Email
"You have an excellent feed. Very few spikes for Spot Forex." - Comment from Public Forum Post
"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
"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
"Its working FABULOUSLY for me!! Holy cow...there has been so much I've been missing lately, and with this feed and Linnsoft software...I'm in the game now." - Comment from Chris R.
"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
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 21190 total posts (0.02%) in 2,322 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: Wed May 1, 2024 11:50 AM CFBB v1.2.0 10 ms.
© AderSoftware 2002-2003