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 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
"Boy, probably spent a thousand hours trying to get ******* API to work right. And now two hours to have something running with IQFeed. Hmmm, guess I was pretty stupid to fight rather than switch all this time. And have gotten more customer service from you guys already than total from them… in five years." - Comment from Jim
"I used to have *******, but they are way more money for the same thing. I have had no probs with data from DTN since switching over." - Comment from Public Forum Post
"The people at Nirvana have very nice things to say about your company and I can see why! Price and service is a potent combination." - Comment from Ed
"Everything is working great ! Very impressive client. The news refreshes better and is more pertinent than the ******* feed I paid $ 100/month for. I Also like the charts a lot." - Comment from Leon
"IQ feed is brilliant. The support is mind-bending. What service!" - Comment from Public Forum Post
"Thanks for following up with me. You guys do a great job in tech support." - Comment from Phelps
"I've been using Neoticker RT with IQFeed for two months, and I'm very happy with both of the products (I've had IQFeed for two years with very few complaints). The service from both companies is exceptional." - Comment from Public Forum
"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
"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) »Data and Content Support »Quote price and size out of sync on price change
Author Topic: Quote price and size out of sync on price change (9 messages, Page 1 of 1)

illuminatus7
-Interested User-
Posts: 34
Joined: Jan 27, 2011


Posted: Apr 23, 2012 01:03 PM          Msg. 1 of 9
Hi,
I'm recording all SPY ticks received from IQFeed and a few times I see the following scenario play out where the quoted size changes a few ticks before the price, so in effect IQFeed is displaying an invalid quote (quote sz belonging to one price level and different price displayed).

Example from 4/19 09:30:00.396 am. All numbers are in the format BidSz,Bid,Ask,AskSz

1) Market is 21, 138.62, 138.63, 10
2) Then I see the bid size go up (to 250 lots): 250, 138.62, 138.63, 10
3) I see a couple of ticks where the ask size goes down from 10 lots to 1 lot (but price doesn't change)
4) Market finally ticks up in your feed to 250, 138.63, 138.64, 74

The problem is that the 250 lot bid belongs to the 138.63 price but there are half a dozen ticks from IQ feed where I see it belonging to the 138.62 price. All steps 1)-4) play out in less than 1 ms. The real problem here is that I have invalid quotes being fed into my system. I'm using the latest IQFeed version.

Thanks

"I hear and I forget. I see and I remember. I do and I understand."
-- Confucius

DTN_ToddH
-DTN Guru-
Posts: 287
Joined: Oct 6, 2011


Posted: Apr 25, 2012 08:31 AM          Msg. 2 of 9
Hello Illuminatus7,
I apologize for the delay in responding.
We are looking into this and will try to get an answer soon. Thanks.

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


Posted: Apr 27, 2012 10:44 AM          Msg. 3 of 9
Thanks for your patience. We have dug through the data for that time period and have determined that there was definately something unexpected going on.

However what we found is that the bid price you have at the start of your scenario is what is wrong.

At point 1) in your scenario, both the bid price and the ask price were 138.63 and they remained that way until point 4) in your scenario where the ask price went to 138.64.

Unfortuantely at this point, we have looked at everything we currently have avialable that will help us determine where the source of the problem was and are not able to locate this. This means that we will have to setup some tools to monitor for reoccurences in order to track this down.

Can you tell me what logic you have in your app that flagged this as abnormal? Are you comparing to another datafeed or was there something unique about the data that indicated a problem? We will need to replicate this same logic to find this.

illuminatus7
-Interested User-
Posts: 34
Joined: Jan 27, 2011


Posted: Apr 27, 2012 05:48 PM          Msg. 4 of 9
Hi,
there is no logic inside my code, I manually inspected the first few seconds of trading for several days and I've seen it happen more than once. My guess is that it's just a race condition: you send a tcp packet with trade sz separately from tcp packets for price change and they arrived at the client out of order?

If you want to set up an automated way to catch those, you may want to look for cases where there's a large qty (> 100 lots) at the bid or offer and then the price changes without the qty changing too. That is basically what I did manually.

"I hear and I forget. I see and I remember. I do and I understand."
-- Confucius

illuminatus7
-Interested User-
Posts: 34
Joined: Jan 27, 2011


Posted: Apr 27, 2012 05:49 PM          Msg. 5 of 9
Sorry got at typo, instead of "you send a tcp packet with trade sz", it should have been "you send a tcp packet with the quote sz"

"I hear and I forget. I see and I remember. I do and I understand."
-- Confucius

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


Posted: May 1, 2012 01:18 PM          Msg. 6 of 9
I've looked at this the past couple mornings and haven't been able to find another instance where this occured. Have you seen any such occurrences?

Also, do you monitor other symbols as well or just SPY?

illuminatus7
-Interested User-
Posts: 34
Joined: Jan 27, 2011


Posted: May 1, 2012 08:30 PM          Msg. 7 of 9
Since you asked, I went and looked at the SPY data from this morning 5/1. I see this suspicious quote sequence around 09:30:03.989 am . All numbers are in the format BidSz,Bid,Ask,AskSz

410,139.81,139.82,24
1,139.81,139.82,24
2,139.81,139.82,24
3,139.81,139.82,24
... a dozen other quotes in between where only the BidSz is changing...
2,139.82,139.82,24
2,139.82,139.83,20

I'm guessing here the bid moved from 139.81 to 139.82 but I only see the bidSz changing (while the ask side seems frozen), then the market gets locked at 139.82 and then finally the ask changes too. Start to finish this sequence is 51 ms long.

My guess is that the first 5 seconds of trading is a good place to look for those. I'm also recording the 1200 most liquid US stocks but obviously I don't have the time to go look at them individually.

Thanks

"I hear and I forget. I see and I remember. I do and I understand."
-- Confucius

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


Posted: May 2, 2012 09:34 AM          Msg. 8 of 9
I'm not seeing the same on our end for this one. I've followed this data all the way through our system and the data matches at each step.

Here is the IQFeed output (including trades) in the following format:
Total Volume,Trade Size,Bid,Ask,Bid Size,Ask Size,Last Trade Time,Extended Trading Last,TickID,Trade Market Center,Bid Market Center,Ask Market Center

For that group of messages.
Q,SPY,2852935,100,139.8100,139.8200,41000,2400,09:30:01b,139.8200,3289,11,8,11,
Q,SPY,2853235,300,139.8100,139.8200,41000,2400,09:30:01t,139.8100,3290,28,8,11,
Q,SPY,2853235,300,139.8200,139.8200,100,2400,09:30:01b,139.8100,3290,28,5,11,
Q,SPY,2853235,300,139.8200,139.8200,200,2400,09:30:01b,139.8100,3290,28,5,11,
Q,SPY,2853235,300,139.8200,139.8200,300,2400,09:30:01b,139.8100,3290,28,5,11,
Q,SPY,2853235,300,139.8200,139.8200,400,2400,09:30:01b,139.8100,3290,28,5,11,
Q,SPY,2853235,300,139.8200,139.8200,300,2400,09:30:01b,139.8100,3290,28,5,11,
Q,SPY,2853235,300,139.8200,139.8200,400,2400,09:30:01b,139.8100,3290,28,5,11,
Q,SPY,2853235,300,139.8200,139.8200,300,2400,09:30:01b,139.8100,3290,28,5,11,
Q,SPY,2853335,100,139.8200,139.8200,300,2400,09:30:01t,139.8200,3291,5,5,11,
Q,SPY,2853435,100,139.8200,139.8200,300,2400,09:30:01t,139.8200,3292,5,5,11,
Q,SPY,2853535,100,139.8200,139.8200,300,2400,09:30:01t,139.8200,3293,5,5,11,
Q,SPY,2853685,150,139.8200,139.8200,300,2400,09:30:01t,139.8200,3294,11,5,11,
Q,SPY,2853785,100,139.8200,139.8200,300,2400,09:30:01t,139.8200,3295,5,5,11,
Q,SPY,2854085,300,139.8200,139.8200,300,2400,09:30:01t,139.8200,3296,11,5,11,
Q,SPY,2856085,2000,139.8200,139.8200,300,2400,09:30:01t,139.8200,3297,11,5,11,
Q,SPY,2856185,100,139.8200,139.8200,300,2400,09:30:01t,139.8200,3298,5,5,11,
Q,SPY,2856285,100,139.8200,139.8200,300,2400,09:30:01t,139.8200,3299,5,5,11,
Q,SPY,2856385,100,139.8200,139.8200,300,2400,09:30:01t,139.8200,3300,5,5,11,
Q,SPY,2856485,100,139.8200,139.8200,300,2400,09:30:01t,139.8200,3301,5,5,11,
Q,SPY,2856585,100,139.8200,139.8200,300,2400,09:30:01t,139.8200,3302,5,5,11,
Q,SPY,2856685,100,139.8200,139.8200,300,2400,09:30:01t,139.8200,3303,5,5,11,
Q,SPY,2856685,100,139.8200,139.8200,200,2400,09:30:01b,139.8200,3303,5,5,11,
Q,SPY,2856685,100,139.8200,139.8300,200,2000,09:30:01b,139.8200,3303,5,5,5,

I also took a look at your connection to the servers this morning and thus far today I don't see any cause for concern there (you're getting all of the data for the symbols you are watching). Unfortunately I can't view your connection stats for yesterday to confirm that this was also the case for the data above (but if you find another instance of discrepency from this morning, we can be certain).

I think at this point we are left with this being something in your app not processing all of the updates.

illuminatus7
-Interested User-
Posts: 34
Joined: Jan 27, 2011


Posted: May 4, 2012 07:09 AM          Msg. 9 of 9
Thanks, I had some code that was messing with the quote in the case of a locked market. I removed it and I'll look at today's data if I see any problems.

"I hear and I forget. I see and I remember. I do and I understand."
-- Confucius
 

 

Time: Sun May 26, 2024 7:24 PM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003