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 will tell others who want to go into trading that DTN ProphetX is an invaluable tool, I don't think anyone can trade without it..." - Comment from Luther
"IQ feed is brilliant. The support is mind-bending. What service!" - Comment from Public Forum Post
"After all the anxiety I had with my previous data provider it is a relief not to have to worry about data speed and integrity." - Comment from Eamonn
"You have an excellent product !!!!!!" - Comment from Arely
"I've never had DTN go out on me since switching. ******* would go down a couple times every month when I was using them." - Comment from Bryce in AL.
"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
"Just a quick one to say I'm very impressed so far :) The documentation for developers is excellent and I've quickly managed to get an app written to do historical downloads. The system is very robust and pretty quick considering the extent of data that's available. The support guys have been very helpful too, in combination with the forums it's been plain sailing so far!" - Comment from Adam
"This beats the pants off CQG, I am definitely switching to the ProphetX 3.0!" - Comment from Stephen
"I started a trial a few weeks back before the market went wild. DTN.IQ didn’t miss anything and beat my other provider. I decided to stay with you because of the great service through all the volatility." - Comment from Mike
"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
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 »Random symbol not found errors with depth data
Author Topic: Random symbol not found errors with depth data (10 messages, Page 1 of 1)

eporter
-Interested User-
Posts: 14
Joined: Jan 20, 2015


Posted: Dec 28, 2015 02:09 PM          Msg. 1 of 10
We run an application which subscribes to depth data for hundreds of stocks. Recently, DTN has inconsistently been telling us that certain symbols are not found.
The problem started last week, but was fine by the time trading hours began. Today the problem persisted into market hours.
Our code worked for a year with no delay between the requests to watch the stocks. We added a delay today which helped a little.
The symbols we get the "not found" message for are not consistent and retrying a symbol will work about half of the time.

We run on Linux through WINE where DTN's depth application works consistently.
Here's an example for TIGR where it worked on the fifth try. Before the '|' character is our internal timestamp.

2015-12-28 13:53:14.553014|n,TIGR.PK
2015-12-28 13:53:28.262000|n,TIGR.PK
2015-12-28 13:53:32.867000|n,TIGR.PK
2015-12-28 13:53:34.322000|n,TIGR.PK
2015-12-28 13:53:35.177002|Z,TIGR.PK,PUMA,0.17,0.195,5000,5000,08:10:07.004,2015-12-28,52,08:10:07.004,T,T,T,
2015-12-28 13:53:35.177003|Z,TIGR.PK,CSTI,0.0001,0.23,10000,2500,08:30:24.045,2015-12-28,52,08:30:24.045,T,T,T,
2015-12-28 13:53:35.177004|Z,TIGR.PK,NITE,0.17,0.18,150895,5000,13:52:01.054,2015-12-28,52,13:52:01.054,T,T,T,
2015-12-28 13:53:35.177005|Z,TIGR.PK,BTIG,0.0001,0.49,10000,2500,07:35:03.056,2015-12-28,52,07:35:03.056,T,T,T,
2015-12-28 13:53:35.177006|Z,TIGR.PK,MAXM,0.01,200.,10000,1,07:35:24.001,2015-12-28,52,07:35:24.001,T,T,T,
2015-12-28 13:53:35.177007|Z,TIGR.PK,ETRF,0.,0.,0,0,99:99:99.000,2015-12-28,52,99:99:99.000,F,F,T,
2015-12-28 13:53:35.177008|Z,TIGR.PK,CANT,0.1,0.28,5000,2500,08:30:23.012,2015-12-28,52,08:30:23.012,T,T,T,
2015-12-28 13:53:35.177009|Z,TIGR.PK,CDEL,0.107,0.2,5000,20000,13:52:01.045,2015-12-28,52,13:52:01.045,T,T,T,
2015-12-28 13:53:35.177010|Z,TIGR.PK,ATDF,0.0001,0.55,10000,2000,10:08:09.040,2015-12-28,52,10:08:09.040,T,T,T,
2015-12-28 13:59:32.507000|2,TIGR.PK,NITE,0.17,0.18,141895,5000,13:59:32.420,2015-12-28,52,13:59:32.420,T,T,T,
2015-12-28 13:59:32.612001|2,TIGR.PK,CDEL,0.107,0.2,5000,20000,13:59:32.519,2015-12-28,52,13:59:32.519,T,T,T,
2015-12-28 13:59:32.612002|2,TIGR.PK,CDEL,0.1151,0.2,5000,20000,13:59:32.519,2015-12-28,52,13:59:32.519,T,T,T,
2015-12-28 14:11:06.603000|2,TIGR.PK,NITE,0.17,0.18,106895,5000,14:11:06.519,2015-12-28,52,14:11:06.519,T,T,T,
2015-12-28 14:11:06.737000|2,TIGR.PK,CDEL,0.1151,0.2,5000,20000,14:11:06.639,2015-12-28,52,14:11:06.639,T,T,T,
2015-12-28 14:11:06.737001|2,TIGR.PK,CDEL,0.1198,0.2,5000,20000,14:11:06.639,2015-12-28,52,14:11:06.639,T,T,T,
Edited by eporter on Dec 28, 2015 at 02:12 PM

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Dec 28, 2015 02:47 PM          Msg. 2 of 10
Thanks for the additional detail, I will check with the server team and see if anything appears out of line that would help explain the inconsistencies and get back with you.

Tim

eporter
-Interested User-
Posts: 14
Joined: Jan 20, 2015


Posted: Dec 28, 2015 04:20 PM          Msg. 3 of 10
Retrying symbols seems to work with about 50% probability. We've seen multiple instances where a stock finally worked on the 4th attempt. Perhaps one backend server is misconfigured? It seems like there is some source of nondeterminism.

We only subscribe to penny stocks, and they have worked for months without any issues until last week. We didn't change anything on our side.

eporter
-Interested User-
Posts: 14
Joined: Jan 20, 2015


Posted: Dec 29, 2015 08:21 AM          Msg. 4 of 10
We continue to have problems today, and once again retrying seems to work around the issue. We're watching 1250 symbols, and below is a histogram of the number of symbols that succeeded after a given number of reattempts.

302 #1
126 #2
38 #3
17 #4
7 #5
2 #6
1 #8

Remarkably, one succeeded only on the 8th attempt to subscribe it. I'm not looking to cast blame, but I can't think of anything on our end that could cause this behavior. There seems to be about 50% chance of each attempt failing, and all attempts seem to be independent. It's like we have to keep retrying until we get routed to the right server.

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Dec 29, 2015 03:26 PM          Msg. 5 of 10
Just an update on this, I believe I now understand what is happening here and I will get back with more detail once I get things confirmed.

Tim

eporter
-Interested User-
Posts: 14
Joined: Jan 20, 2015


Posted: Jan 14, 2016 12:12 AM          Msg. 6 of 10
I made a little progress on this by altering my code to wait for DTN to send me a 'Z' message or an 'n' message before watching another symbol. Previously my code would watch new symbols without waiting for a response to the prior requests. This worked just fine from late 2014 until Dec 28 2015.

Unfortunately, it still fails 2-3% of the time, again on random symbols. Maybe something changed in the server code when the 5.2 protocol was launched?

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Jan 14, 2016 07:51 AM          Msg. 7 of 10
This is the result of changes in how the exchange sends out messages to our level 2 client and how we handle the occurrence when no data exists for a given symbol. We are looking at better methods of handling this, but there is still more we are planning on doing. I will check to see if a ETA is available yet, but I know this is something we would like to see go out as soon as possible.

Tim

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Jan 14, 2016 10:49 AM          Msg. 8 of 10
Eric,

We are going to try to have this out Monday morning for you. What you can expect is that in the event of no current data being available, we will return a market maker of NODATA with zeroed fields to indicate that no positions on this symbol are currently held. Data will flow through the normal data stream when new data arrives and the NODATA market maker will drop off upon the receipt of new data. If all the data should clear off of the stack the NODATA market maker will return to hold the symbol open and valid.

Also, these rules only apply to symbols that have had recent L2 data activity. If a symbol has not had any recent L2 activity it will continue to respond with the current behavior. So expect Monday to take a little time to get settled in as the first bids or asks arrive for each symbol.

I will confirm every thing is up as expected Monday morning.

Tim

eporter
-Interested User-
Posts: 14
Joined: Jan 20, 2015


Posted: Jan 20, 2016 07:05 PM          Msg. 9 of 10
Tim,

We haven't seen any changes to the behavior of L2 data this week. We still get the 'n' messages at the same rate and I haven't seen the NODATA market maker yet.

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Jan 21, 2016 05:43 AM          Msg. 10 of 10
I'll check with the server team today for an update on where they are with this. I will send you an email shortly to have you try something a little different as well.

Tim
 

 

Time: Fri May 17, 2024 11:36 PM CFBB v1.2.0 14 ms.
© AderSoftware 2002-2003