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 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
"If someone needs the best quality data and backfill beyond what their broker provides at a rate that is the best in the industry, I highly recommend IQFeed." - Comment from Josh via Public Forum
"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
"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
"With HUGE volume on AAPL and RIMM for 2 days, everyone in a trading room was whining about freezes, crashes and lag with *******, RealTick, TS and Cyber. InvestorRT with IQFeed was rock solid. I mean SOLID!" - Comment from Public IRC Chat
"You have an excellent product !!!!!!" - Comment from Arely
"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
"As a past ******* customer(and not a happy one), IQ Feed by DTN is a much better and cheaper product with great customer support. I have had no problems at all since switching over." - Comment from Public Forum
"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
"Can I get another account from you? I am tired of ******* going down so often" - Comment from George
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 »NEW IQFEED FORUMS »New IQFeed Forum »IQFeed on Linux throws ICMP error
Author Topic: IQFeed on Linux throws ICMP error (4 messages, Page 1 of 1)

karthikkrishnan
-Interested User-
Posts: 22
Joined: Nov 4, 2015


Posted: Apr 7, 2020 01:56 PM          Msg. 1 of 4
I am using wine to run IQFeed and connect using python socket clients. When I run it first time, it connects and downloads the data. If I stop my client and relaunch again, it throws an error as below.

002d:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x32e868 1 C) semi-stub
0032:err:ole:CoUninitialize Mismatched CoUninitialize
002d:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
002d:fixme:msvcrt:__clean_type_info_names_internal (0x1029f8fc) stub
^C0033:fixme:console:CONSOLE_DefaultHandler Terminating process 8 on event 0
0033:fixme:msvcrt:__clean_type_info_names_internal (0x1029f8fc) stub

Has anyone been successful to have a client connect and reconnect at will ? Now I am left to kill the IQfeed process and relaunch and do it all over again [Not a workable solution]. I am surprised we still don't have a good Linux solution.

DTN_Gary_Stephen
-DTN Guru-
Posts: 394
Joined: Jul 3, 2019


Posted: Apr 15, 2020 03:26 PM          Msg. 2 of 4
Are you using Wine to run IQConnect.exe? That type of error is usually a Wine error. Let me know, and we may have you turn on some logging, to see what the program is doing behind the scenes.

Sincerely,
Gary Stephen
DTN IQFeed API Support

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist

karthikkrishnan
-Interested User-
Posts: 22
Joined: Nov 4, 2015


Posted: Apr 15, 2020 04:03 PM          Msg. 3 of 4
yes, I do use wine using command /opt/wine-stable/bin/wine "/home/ubuntu/.wine/drive_c/Program Files (x86)/DTN/IQFeed/IQLinkLauncher.exe"

This launches which needs a start button clicked manually.

How do I turn on more logging ?

jmv
-Interested User-
Posts: 19
Joined: May 31, 2011


Posted: Apr 21, 2020 03:12 PM          Msg. 4 of 4
Hi,

iqconnect.exe does a ping round trip against its DTN servers (you can see the ping results at IQConnect.log when you stop the feed and iqconnect.exe exits). Thing is, ping uses ICMP protocol, which in linux is somewhat privileged.

So, you need to give wine the appropiate permissions in order to be able to use ICMP. Running wine as root in order to circumvent this problem would be overkill (besides a very bad thing to do!), but fortunately you can use setcap in order to grant permissions in a much more granular way.

First, locate where your wine-preloader file is. In my case, it's on /usr/bin/wine-preloader . Then, type (yoo will need to sudo for this):

sudo setcap cap_net_raw+epi /usr/bin/wine-preloader

and that's all. Now wine is allowed to use ICMP protocol, which in turn will allow IQconnect.eze to make its "ping things" without complaining xD

trade well !

Jose,
 

 

Time: Sat April 27, 2024 11:50 PM CFBB v1.2.0 11 ms.
© AderSoftware 2002-2003