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 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
"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
"Thank you so much - awesome feed, awesome service!" - Comment from Greg via Email
"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
"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.
"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
"DTN has never given me problems. It is incredibly stable. In fact I've occasionally lost the data feed from Interactive Brokers, but still been able to trade because I'm getting good data from DTN." - Comment from Leighton
"I like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"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
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 »Decoding Trade Conditions
Author Topic: Decoding Trade Conditions (16 messages, Page 1 of 1)

mrak
-Interested User-
Posts: 7
Joined: Mar 20, 2014

What, me worry?


Posted: Mar 20, 2014 11:43 AM          Msg. 1 of 16
From digging through the forum, I can see this is asked about a lot, but I'm still confused. I'm trying to decode the Trade Conditions codes, so I sent an STC<CR><LF> command to IQFeed and it was ignored. I've tried it at startup and after sending a request for @ESM14, thinking that it might be specific to the particular security. Please let me know what I'm doing wrong.

Thanks,
Mark

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


Posted: Mar 20, 2014 11:49 AM          Msg. 2 of 16
Hello Mark,

What port are you connecting to? You should be able to telnet to the lookup socket and just type STC to test that things are working as they should.

Tim

mrak
-Interested User-
Posts: 7
Joined: Mar 20, 2014

What, me worry?


Posted: Mar 20, 2014 12:18 PM          Msg. 3 of 16
Thank you for that. I was trying to access this by modifying the Level1Socket demo. With your help, I downloaded PuTTY and got the code descriptions just fine.

Now all I need is some way to decode the descriptions. For example, yesterday I was seeing trades with Trade Condition = 4D, which I believe is decimal 77. The table says that means Implied. What does that mean?

Mark

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


Posted: Mar 20, 2014 12:37 PM          Msg. 4 of 16
Each exchange has a set of codes that they define and send and they have documents that tell us how to display their data. You are correct in your hex to decimail conversion, so the next thing would be to look at the specifications for the exchanges you are concerned with.

Here are a couple examples with references of where in the documents to look.

http://nasdaqtrader.com/content/technicalsupport/specifications/utp/utdfspecification.pdf
7.5.1.1. UTP Trade Condition Matrix

https://cta.nyxdata.com/cta/document/5944/2f76d73065c5d0f9629eb576302adc1da66d1f9f
Page 113

Then from here, you can decide to display or not display whatever you like to match your customers' desires.

Tim

mrak
-Interested User-
Posts: 7
Joined: Mar 20, 2014

What, me worry?


Posted: Mar 20, 2014 01:13 PM          Msg. 5 of 16
Thank you!

Mark

niratnalagi
-Interested User-
Posts: 6
Joined: Sep 29, 2014

Hello world


Posted: Sep 29, 2014 02:47 PM          Msg. 6 of 16
Hi Tim,

Can you please provide a lookup table between DTN sales conditions codes and the Exchanges codes?
For example DTN code '01' equals Nasdaq/NYSE code '@', and so on...

Is there any field in the stream where DTN is passing thru the Exchange code itself?

Thanks,
Nir

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


Posted: Sep 29, 2014 02:59 PM          Msg. 7 of 16
Good afternoon,

The lookups for this information are detailed on this page.

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

Just do a search for trade conditions and\or listed market and there are samples of the data being returned so that you can get these values at anytime. Just don't hard code the values returned or use the sample data as it changes regularly.

Tim

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


Posted: Sep 29, 2014 03:49 PM          Msg. 8 of 16
In re-reading this, I may not have answered what you really asked for, but the answer unfortunately now becomes no. We do not have a one to one reference of this information. You can take a look at this site, https://nasdaqtrader.com/content/technicalsupport/specifications/utp/utdfspecification.pdf section 7.5.1.1, but you will need to match them up by name. Also, as mentioned before, we do not guarantee the list won't change, so maybe the better question becomes, What is it you are trying to accomplish? Maybe there is a better way one of us here can suggest.

Tim

niratnalagi
-Interested User-
Posts: 6
Joined: Sep 29, 2014

Hello world


Posted: Sep 29, 2014 04:00 PM          Msg. 9 of 16
++ This Post should be ignored ++

Thanks Tim,

However, I was actually looking for something a bit different...

Since DTN provides its proprietary sales condition code via the feed and not the sales condition code as it is provided by the Exchange, I was looking for a lookup/translation table that will give me the sale condition as it was provided by the exchange itself on each trade.

For example: '@' for "Regular Trade" (01 in DTN feed), 'F' for "Intermarket Sweep" (61 in DTN feed), etc.

Is there a way to get such a translation table? or alternatively the to get the Sale Condition as it is provided directly by the exchange?

Thanks,
Nir
Edited by niratnalagi on Sep 29, 2014 at 04:13 PM

niratnalagi
-Interested User-
Posts: 6
Joined: Sep 29, 2014

Hello world


Posted: Sep 29, 2014 04:11 PM          Msg. 10 of 16
We do our own filtering based on sales conditions coming from the exchange...therefore, I needed the sale condition as it is provided by the exchange.

Now, I understand it is not provided by the feed - which means I will need to create my own lookup table based on the description. Would appreciate it if you could review the attached (I marked those that I need)

However, since I can only fetch the description using TelNet, I can not do it in real-time... Is that true?
How often do you anticipate the list can be changed?

Thanks,
Nir

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


Posted: Sep 30, 2014 08:32 AM          Msg. 11 of 16
I don't see an attachment yet. If it won't post correctly, do you want to send it to the developer support email please so I can try to find further answers for you?

As to how often, I don't know that answer as the exchange can change them whenever they like. It is not often, but it could be tomorrow, it could be 2 months from now, or longer. I just can't guarantee that these will not change at any given time and notice is not provided of any changes to the data set.

Tim

niratnalagi
-Interested User-
Posts: 6
Joined: Sep 29, 2014

Hello world


Posted: Sep 30, 2014 09:17 AM          Msg. 12 of 16
Sorry, the file was in Excel format. I uploaded it now as PDF.
Again, I marked those trade conditions that are important for us.

If condition changes is up to the Exchanges... I can live with that and follow their publications...
Unless there's a way to get DTN list by a command I can send thru the Socket rather than manually using TelNet... Is there?

Thanks a lot for your help,
Nir



File Attached: SaleConditions.pdf (downloaded 1724 times)

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


Posted: Sep 30, 2014 12:41 PM          Msg. 13 of 16
Certainly, any request you can make via telnet can be made via a socket as well. Telnet just provides for a quick example app.
Edited by DTN_Tim Walter on Sep 30, 2014 at 12:41 PM

niratnalagi
-Interested User-
Posts: 6
Joined: Sep 29, 2014

Hello world


Posted: Oct 7, 2014 03:20 AM          Msg. 14 of 16
Hi Tim,

Do you guys have any plans to pass thru the sale condition as it comes from the exchanges? It will really help.

Thanks,
Nir

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


Posted: Oct 7, 2014 07:31 AM          Msg. 15 of 16
Hello, I do not believe so, at least not at this time, though we did get your table completed.

Disclaimer: These are subject to change, so for the person viewing this post somewhere down the road, please do not assume these to be accurate.

DTN VALUE DEFINE DESCRIPTION NASDAQ NYSE/Amex
1 REGULAR Normal Trade @ @
2 ACQ Acquisition A N/A
3 CASHM Cash Only Market C N/A
4 BUNCHED Bunched Trade B N/A
5 AVGPRI Average Price Trade W B
6 CASH Cash Trade (same day clearing) C C
7 DIST Distribution D N/A
10 BUNCHEDSOLD Bunched Sold Trade G N/A
15 RULE155 Rule – 155 Trade AMEX K K
16 SOLDLAST Sold Last (late reporting) L L
17 NEXTDAYCLR Next Day Clearing N N
18 LATEREP Opened - Late Report of Opening Trade (in or out of sequence) O N/A
19 PRP Prior Reference Price P P
20 SELLER Seller R R
21 SPLIT Split Trade S N/A
23 FORMT Form-T Trade T T
25 SOLDOSEQ Sold Out of Sequence Z Z
30 OPEN Late Report of Opening Trade - out of sequence O O
31 OPNL Late Report of Opening Trade – in correct sequence O N/A
32 AUTO Transaction Executed Electronically N/A E
46 MC_OFCLCLOSE Market Center Official Closing Price M M
47 STPD_REGULAR Stopped Stock - Regular Trade 1 N/A
48 STPD_SOLDLAST Stopped Stock - Sold Last 2 N/A
49 STPD_SOLDOSEQ Stopped Stock - Sold out of sequence 3 N/A
57 MC_OFCLOPEN Market Center Official Opening Price Q Q
58 FORMTSOLDOSEQ Form-T Sold Out of Sequence U U
59 YELLOWFLAG Yellow Flag Y N/A
61 INTRMRK_SWEEP Intramaket Sweep F F
62 DERIVPRI Derivately Priced 4 4
63 REOPNING Re-Opening Prints 5 5
64 CLSING Closing Prints 6 6
66 CROSS_TRADE Cross Trade X X
67 PRICE_VAR Price Variation H H
68 STKOPT_TRADE Stock-Option Trade V V
135 ODDLOT Odd Lot Trade I I
136 CORRCSLDLAST Corrected Consolidated last 9 9

niratnalagi
-Interested User-
Posts: 6
Joined: Sep 29, 2014

Hello world


Posted: Oct 7, 2014 03:30 PM          Msg. 16 of 16
Thank you so very much for that. really helpful.
I'm also getting quite a lot of 0x47 (71 decimal) - would appreciate this last one to be translated to the exchanges sale condition.

Again, much appreciated!
Nir
 

 

Time: Sat May 18, 2024 3:54 PM CFBB v1.2.0 11 ms.
© AderSoftware 2002-2003