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)




"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
"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
"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.
"I was with ******* for 4 years at $230 a month, this is a huge savings for me, GOD BLESS YOU PEOPLE," - Comment from T.S. via Email
"You are much better than lawyers or the phone company because you answer the phone when I call! I just love your customer service." - Comment from Isreal
"IQ feed is brilliant. The support is mind-bending. What service!" - Comment from Public Forum Post
"It’s so nice to be working with real professionals!" - Comment from Len
"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
"I ran your IQFeed DDE vs. my broker vs. a level II window for some slow-moving options. I would see the level II quote change, then your feed update instantaneously. My broker's DDE, however, would take as much as 30 seconds to update. I am not chasing milliseconds, but half a minute is unacceptable." - Comment from Rob
"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.
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 »Level 2 'U' Message Documentation Clarification
Author Topic: Level 2 'U' Message Documentation Clarification (12 messages, Page 1 of 1)

akailash
-Interested User-
Posts: 11
Joined: Jul 17, 2006


Posted: Jul 17, 2006 02:03 PM          Msg. 1 of 12
Is Level 2 'U' Message documented response not matching with what is returned from servers. I see
================== As Documented =================
A Level II Update, a comma separated line of text indicating the values for the update. The message is defined below.
symbol - [out] The Security's Stock Symbol
mmid - [out] The ID of the Market maker originating the quote update
ask - [out] The Buy Offer Price
ask_size - [out] The size of the Buy Offer
bid - [out] The Sell Offer Price
bid_size - [out] The size of the Sell Offer
date - [out] The date and time the update occurred
reason - [out] The reason code for the update
condition_code - [out] The condition of the update
source_id - [out] The quote source's id
============================================

As received from servers.
U,MSFT,BRUT,22.45,22.46,289,183,15:00:58,2006-07-17,20,52,5
U,MSFT,BRUT,22.45,22.46,289,180,15:00:58,2006-07-17,20,52,5
U,MSFT,SIZE,22.45,22.46,156,115,15:00:58,2006-07-17,20,52,5
U,MSFT,SIZE,22.45,22.46,157,115,15:00:58,2006-07-17,20,52,5
U,MSFT,BRUT,22.45,22.46,289,184,15:00:58,2006-07-17,20,52,5
U,MSFT,TRAC,22.45,22.46,60,57,15:00:58,2006-07-17,20,52,5
U,MSFT,BRUT,22.45,22.46,289,169,15:00:58,2006-07-17,20,52,5
U,MSFT,BRUT,22.45,22.46,289,184,15:00:58,2006-07-17,20,52,5
U,MSFT,TRAC,22.45,22.46,60,42,15:00:58,2006-07-17,20,52,5
U,MSFT,BRUT,22.45,22.46,290,184,15:00:58,2006-07-17,20,52,5
U,MSFT,SIZE,22.45,22.46,157,100,15:00:58,2006-07-17,20,52,5
U,MSFT,ARCX,22.45,22.46,301,159,15:00:58,2006-07-17,20,52,11
U,MSFT,BRUT,22.45,22.46,291,184,15:00:58,2006-07-17,20,52,5
U,MSFT,BRUT,22.45,22.46,290,184,15:00:58,2006-07-17,20,52,5
U,MSFT,ARCX,22.45,22.46,301,159,15:00:58,2006-07-17,20,52,11
U,MSFT,BRUT,22.45,22.46,289,184,15:00:58,2006-07-17,20,52,5
U,MSFT,BRUT,22.45,22.46,289,183,15:00:58,2006-07-17,20,52,5
U,MSFT,SIZE,22.45,22.46,157,115,15:00:58,2006-07-17,20,52,5
U,MSFT,ARCX,22.45,22.46,300,159,15:00:58,2006-07-17,20,52,11
U,MSFT,BRUT,22.45,22.46,289,179,15:00:58,2006-07-17,20,52,5
U,MSFT,TRAC,22.45,22.46,60,57,15:00:58,2006-07-17,20,52,5
U,MSFT,BRUT,22.45,22.46,289,164,15:00:58,2006-07-17,20,52,5
U,MSFT,TRAC,22.45,22.46,60,42,15:00:58,2006-07-17,20,52,5
U,MSFT,SIZE,22.45,22.46,157,100,15:00:58,2006-07-17,20,52,5
U,MSFT,ARCX,22.45,22.46,300,159,15:00:56,2006-07-17,20,52,11
U,MSFT,SIZE,22.45,22.46,157,115,15:00:56,2006-07-17,20,52,5
U,MSFT,BRUT,22.45,22.46,289,179,15:00:56,2006-07-17,20,52,5
U,MSFT,BRUT,22.45,22.46,289,177,15:00:56,2006-07-17,20,52,5
U,MSFT,BRUT,22.45,22.46,289,181,15:00:56,2006-07-17,20,52,5

As seen, date field is also separate fields. Please clarify how to interpret L2 data.

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


Posted: Jul 17, 2006 02:38 PM          Msg. 2 of 12
this has been changed in the most current version (4.1.2.0) of IQFeed. It appears that version of the documentation hasnt made it to the website yet.

If you have the most current version installed you should have a current copy of the docs on your hard drive in the installed directory.

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


Posted: Jul 17, 2006 02:48 PM          Msg. 3 of 12
I just checked the website and the new version is actually already there.

http://www.iqfeed.net/dev/api/docs/LevelIIviaTCPIP.cfm

stargrazer
-DTN Guru-
Posts: 302
Joined: Jun 13, 2005

Right Here & Now


Posted: Aug 23, 2006 06:25 AM          Msg. 4 of 12
There have been several other posts in the forum regarding Level II info. I've looked at nasdaqtrader.com and can't seem to find a relevant document for definitions of the reason code and condition code.

Can someone please post some definitive information as to the definition of these codes?

Thanx.

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


Posted: Aug 23, 2006 08:25 AM          Msg. 5 of 12
from this post here on our forums: http://forums.iqfeed.net/index.cfm?page=topic&topicID=1110
Quote:
Reason:
44 - Deleted
48 - Halted
4D - No Active Market Maker
20 - None

Condition Code:
52 - Regular - This will include normal quotes, market maker opens, one sided quotes, Ask Depth Quotes, Bid Depth Quotes, and Both Bid and Ask Depth Quotes.
4C - Non-regular

This information will be updated in the next release of the documentation.
Edited by DTN_Steve_S on Aug 23, 2006 at 08:27 AM

stargrazer
-DTN Guru-
Posts: 302
Joined: Jun 13, 2005

Right Here & Now


Posted: Sep 8, 2006 08:48 PM          Msg. 6 of 12
Is there a standard way of translating this information into 'Insert, Delete, Update, Undefined' type operations, in a fashion similar to IB marketdepth? Or is this even an applicable question to this type of data?

Thanx.
Edited by stargrazer on Sep 9, 2006 at 01:04 PM

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


Posted: Sep 11, 2006 01:44 PM          Msg. 7 of 12
I have spoken with development and they are researching this issue to see if support is available for those operations. I will reply when I get an answer back.

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


Posted: Sep 11, 2006 02:44 PM          Msg. 8 of 12
Short answer, "I don't think so"
Long answer to follow:

Let me preface by saying that I am having a hard time finding information about L2 data. I have requests into various departments trying to figure out what these fields refer to (when I dug up the information initially, I didnt bother asking what they mean). Also, keep in mind that I am not familiar with IB's market depth data or thier formatting.

To my knowledge, the only one of these reason codes that makes sense (besides 20-None) is halted and that is simply going to happen when there is a trading halt across the board on a stock.

The rest of these values do not make sense to me. I'm fairly certain that these reason codes are set by the exchange (not by DTN) and I would suspect that you will very rarely see anything in the reason code other than 20 (none). The reasoning I say this is because it does not make sense to delete a L2 tick and it does not make sense that a L2 Update would not have an active market maker since all L2 data is provided from Market Makers.

stargrazer
-DTN Guru-
Posts: 302
Joined: Jun 13, 2005

Right Here & Now


Posted: Sep 11, 2006 03:16 PM          Msg. 9 of 12
Thank you for investigating. Perhaps when someone from development provides some info as to what they do with inbound feeds, and how it is translated into your feed that might help. I tried to correlate what your feed looks like with any sort of documentation on Nasdaq's site and came up empty handed.

Perhaps the 5's, 10's and 11's on the last column may have more than a passing meaning. I have seen some similarities with IB's feed, but I'll need to examine your's and theirs more closely to see if the 5's, 10's, and 11's are the missing link, or if there is something more complicated behind the scenes.

I look forward to hearing what ever you may get from development.

stargrazer
-DTN Guru-
Posts: 302
Joined: Jun 13, 2005

Right Here & Now


Posted: Sep 24, 2006 09:47 AM          Msg. 10 of 12
Tim/Steve, you mentioned L2 ticks. Actually, all L2 data is just a quote book. It doesn't involve trades. The quote book is a continuously evolving set of limit orders that may be cancelled at any time. This ebb and flow of limit orders is what makes the L2 data useful as another indication of market direction.

So, having said all that, have you heard back from developers what the various codes means and how to interpret them in the context of the adds, deletes, and changes of the limit order book?

Assuming that this is indeed what the data is representing?
Edited by stargrazer on Sep 24, 2006 at 09:47 AM

stargrazer
-DTN Guru-
Posts: 302
Joined: Jun 13, 2005

Right Here & Now


Posted: Sep 24, 2006 07:25 PM          Msg. 11 of 12
Upon some further research, I see some vendors represent this data by simply using the MMID as key, and alway updating the MMID based record. This interpretation does indeed make it easy to render the data stream in a limit order book, with only one record per MMID represented. Call this scenario A.

However, I have seen certain other systems represent the order book where a certain MMID can have several lines in the order book. Call this scenario B.

With scenario A, records are automatically aged out simply by being overwritten. With scenario B, records need to be aged out using some other mechanism. I was hoping that the Reason, Condition, or Source code columns aided this.

So, in summary, could someone 'in the know', either DTN or some third party vendor, offer up some definitive clues as to which scenario this data represents: A, B, or some other way. If B, then how does one age out the records?

Thanx.

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


Posted: Sep 25, 2006 09:07 AM          Msg. 12 of 12
Scenario A is the correct "model" of IQFeed. This is evident by the L2 display in our inhouse DTNIQ software.
 

 

Time: Sat May 4, 2024 4:49 AM CFBB v1.2.0 14 ms.
© AderSoftware 2002-2003