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)




"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 cannot believe what a difference it makes trading with ProphetX!" - Comment from Bruce in Los Angeles
"Just a thank you for the very helpful and prompt assistance and services. You provided me with noticeably superior service in my setup compared to a couple of other options I had looked at." - Comment from John
"Version 4.0.0.2 has been working well for me and I appreciate that it is now a much tighter client to work with. I feel I can go to press with my own application and rely on a stable platform" - Comment from David in IA.
"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
"Excellent datafeed !!!" - Comment from Arely
"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
"If you are serious about your trading I would not rely on IB data for serious daytrading. Took me a while to justify the cost of IQ Feed and in the end, it's just a 2 point stop on ES. Better safe than sorry" - Comment from Public Forum
"The service is great, I see a noticeable improvement in my volume profiles over [broker]'s data feed" - Comment from Larry
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 »Archive (2017 and earlier) »IQFeed Developer Support »Socket problems
Author Topic: Socket problems (2 messages, Page 1 of 1)

david_leake
-Interested User-
Posts: 4
Joined: Nov 18, 2017


Posted: Dec 16, 2019 12:40 PM          Msg. 1 of 2
Hi - we've had issues with 'phantom' connections on one of the sockets!

Following this answer http://forums.iqfeed.net/index.cfm?page=topic&topicID=3936, if we receive a "Could not connect to History socket" or "NO_DATA" error happens, we re-issue the request. This mostly works, but not always.

If the internet connection was lost, we have seen a problem where our software recognizes the IQFeed connection as alive, and retrys the command, but the command just keeps looping. Running IQFeed diagnostics, IQFeed was not running, but our software was still connected to this "phantom" connection on one of the sockets.

This occurred even when the internet was back on.

Also we find NO_DATA exceptions sometimes loops for minutes or hours, and if we stop the software and reload it, in most of the cases, the response is instant.

It seems to me that there is some error in sockets, which don't get a stable connection with IQFeed, so our solution is now to kill the IQFeed process and restart it if there are more than 5 socket errors.

Does this seem like a reasonable approach? Are there any other solutions or suggestions?

Thanks
Edited by david_leake on Dec 19, 2019 at 02:28 AM

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


Posted: Jan 6, 2020 05:35 PM          Msg. 2 of 2
David,

Hello, this is Gary Stephen with DTNIQFeed API Support. I apologize for the slow reply on this.

First, let's clarify that these are two different things. "Could not connect" means you can’t connect, “NO_DATA” means you ARE connected, but your request did not turn up any data (like searching at a time the market is closed). That is a reply from the server.

Re-requesting a connection when you get "unable to connect" is fine. And probably a good idea, the Internet being a unreliable sometimes. But I'm puzzled at the behavior of the NO_DATA responses; in these cases, you already are connected, so re-connecting isn't going to do anything. And an API command responds NO_DATA, it should always respond NO_DATA (except in some rare circumstances during maintenance times when data may be offline).

In this "phantom connection", what exactly remained connected? If you don't have a port connection, IQConnect.exe will shut itself down within 30 seconds. So there should be no lingering connetions. I would want to do some port checks and see what's still connected. What else can you tell me about the circumstances bring about these NO_DATA responses you've mentioned?

Sincerely,
Gary Stephen
DTN IQFeed API Support

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist
 

 

Time: Tue April 23, 2024 8:32 PM CFBB v1.2.0 8 ms.
© AderSoftware 2002-2003