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 was on the phone with a friend who uses CQG and right after the Fed announcement, CQG was as much as 30 seconds behind DTN.IQ. Some quotes were off by as much as 15-18 cents. Your feed never missed a beat." - Comment from Roger
"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
"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
"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
"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 just wanted to say how happy I am with your service. I was able to download the API docs last week and I was able to replicate Interactive Brokers historical bar queries and realtime bar queries over the weekend. That was about one of the fastest integrations that I've ever done and it works perfectly!!!!" - Comment from Jason via Email
"The service is great, I see a noticeable improvement in my volume profiles over [broker]'s data feed" - Comment from Larry
"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
"This beats the pants off CQG, I am definitely switching to the ProphetX 3.0!" - Comment from Stephen
"Thanks for the great product and support. During this week of high volume trading, my QuoteTracker + IQ Feed setup never missed a beat. Also, thanks for your swiftness in responding to data issues. I was on ******* for a few years before I made the switch over early this year, and wish I had done it a long time ago." - Comment from Ken
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: 396
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: Tue May 7, 2024 12:02 AM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003