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)




"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
"Its working FABULOUSLY for me!! Holy cow...there has been so much I've been missing lately, and with this feed and Linnsoft software...I'm in the game now." - Comment from Chris R.
"And by the way, have to say this. I love the IQFeed software. It's rock solid and it has a really nice API." - Comment from Thomas via RT Chat
"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
"I noticed that ******* quotes locked up shortly after the interest rate announcement yesterday while yours stayed stable." - Comment from Ron in Utah
"Can I get another account from you? I am tired of ******* going down so often" - Comment from George
"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
"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
"I use IQ Feed, Great stuff as far as data analysis information, storage and retrieval is concerned." - Comment from Public Forum
"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
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 1624 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: Sun May 5, 2024 11:06 PM CFBB v1.2.0 11 ms.
© AderSoftware 2002-2003