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)




"Excellent datafeed !!!" - Comment from Arely
"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
"Everything is working great with the API. I love it." - Comment from Calvin
"Awesome response, as usual. It is a sincere and refreshing pleasure to do business with DTN, compared to your competition." - Comment from Ryan
"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
"DTN feed was the only feed that consistently matched Bloomberg feed for BID/ASK data verification work these past years......DTN feed is a must for my supply & demand based trading using Cumulative Delta" - Comment from Public Forum Post
"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
"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
"Interactive Brokers tick data was inconsistent, so I have switched to using DTN exclusively. It is great to no longer have to worry about my datafeed all day long." - Comment from Philippe
"Everything is working amazing now. I'm already impressed with the true-tick feed of IQFeed and it's ability to support my 480 symbol layout." - Comment from Tyler via Email
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 »Data spikes
Author Topic: Data spikes (4 messages, Page 1 of 1)

bludev
-Interested User-
Posts: 16
Joined: Nov 14, 2012


Posted: Jul 19, 2013 04:31 AM          Msg. 1 of 4
Hi, I have recently switched to IQFeed 5.0 protocol with
"S,SELECT UPDATE FIELDS,Most Recent Trade Date,Most Recent Trade TimeMS,Most Recent Trade,Most Recent Trade Size,Total Volume"
This is all working fine except now occasionally I'm getting some spikes in the data which don't look like they are real trades. I'm attaching an example here (PNG file) which I've also verified by looking through IQConnectLog.txt:

Q,@ADU13,07/18/2013,07:10:36.004,0.9187,1,38571,
Q,@ADU13,07/18/2013,07:30:36.418,0.9187,19,39741,

Any ideas what is causing these? Are these errors/blips in the data or some sort of "non-qualified" trade? Is there any systematic way to filter these out?

Thanks!



File Attached: AUD_Spikes.PNG (downloaded 1631 times)

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Jul 19, 2013 08:54 AM          Msg. 2 of 4
Hello, looking at tick history (specifically at trade condition) for these 2 trades, they were both implied trades and were non-last-qualifying. Implied trades are generated by the exchange as a result of spread trading.

One of the new features in IQFeed 5.0 is that we now have the ability to send through all trades that the exchange provides along with the necessary information for you to decipher them and include/exclude whatever trades you want to see (or don't want to see).

The Most Recent Trade fields in IQFeed 5.0, include all trades that the exchange sends. We have also added 2 fields that will allow you to identify these trades and exclude them from your processing. The first field is the Most Recent Trade Conditions field (along with the Trade Condition lookup). The second field is the Message Contents field which will give a general grouping of trades C = last-qualified, E = form T, O = Everything not C or E. In this case, these trades would have come through with a trade condition indicating they were implied and a message contents field indicating they were "O".

With all that said, you have a few different options to handle this in your app. You can either add the trade conditions and message contents field to your current fieldset and filter these trades within your app, or you can switch your fieldset to use either the "Last" fields (Last, Last Date, Last TimeMS, Last Size) which will only update with last qualified trades or you can use the Extended Trade fields (Extended Trade, Extended Trade Date, Extended Trade TimeMS, Extended Trade Size) which will update with last-qualified trades + form T trades. If you are only watching futures, these 2 fieldsets will return the same data since FormT trades only apply to equities.

bludev
-Interested User-
Posts: 16
Joined: Nov 14, 2012


Posted: Jul 26, 2013 01:27 AM          Msg. 3 of 4
Thanks for this comprehensive reply, very helpful.

So having now had a chance to play with Most Recent Trade Conditions and Message Contents fields, I can see that all the spikes in my future currency data (e.g. @AD and @JY) where due to the occasional group O messages with condition 4D.

However... for crude futures QCL, these same group O messages seem to make up a substantial (~5%) portion of the data which look legitimate and without any spikes. In fact including these group O messages we are now getting much better agreement between IQ feed tick data for crude and the data we can download from TickWrite the next day.

So my question now is, is there any API for programatically finding out which symbols should include group O messages as part of normal data and which ones should exclude them? Or is this a user parameter that one would only know by trial and error?

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Jul 26, 2013 08:24 AM          Msg. 4 of 4
Unfortunately this would have to be something to implement on your end. All the information we get from the exchange to describe these trades is already sent through to you via the feed.
 

 

Time: Sat May 18, 2024 9:43 AM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003