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 let you know how fast and easy I found it to integrate IQFeed into our existing Java code using your JNI client. In my experience, such things almost never go so smoothly - great job!" - Comment from Nate
"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
"I like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"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
"Thanks for following up with me. You guys do a great job in tech support." - Comment from Phelps
"You have an excellent product !!!!!!" - Comment from Arely
"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 have been using IQFeed now for a few years in MultiCharts and I have zero complaints. Very, very rare to have any data hiccups or anything at all go wrong." - Comment from Public Forum
"I would just like to say that IQFeed version 4 is running very well and I am very happy with its performance. I would also like to extend a big thanks for the fast and efficient help that I always receive. My questions and concerns are always addressed promptly. Way to go!" - Comment from Josh in CO.
"This is an excellent value, the system is generous (allowing for 500 stocks) and stable (and really is tick-by-tick), and the support is fantastic." - Comment from Shirin 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) »DTN Satellite Products »Pre-market/post-market trades
Author Topic: Pre-market/post-market trades (2 messages, Page 1 of 1)

tfjield
-Interested User-
Posts: 4
Joined: Jan 10, 2008


Posted: Jan 10, 2008 06:22 PM          Msg. 1 of 2
Hi,

Does the DTN satellite developer's feed transmit pre- and post- market trades? If so, I am unable to catch them.

I'm thinking that it is perhaps due to a flag that I'm checking for to make sure the trade is a current, valid trade, but I'm not sure which it could be.

That flags I'm looking at are illustrated in the following code:

if(csSymbol.CompareNoCase("QMON")) // Don't process the test quote
if(csSymbol.CompareNoCase("ZZZZZZZZ")) // Don't process the test quote
if(!(cUpdateInfoType & 0x60)) // Normal Updates only
if(iQuoteStatus != 0xFFFF) // Quote status is valid
if(iQuoteStatus & 0x0002) // Trade bit
if(iQuoteStatus & 0x0400) // Instant Quote
if(!(iQuoteStatus & 0x0800)) // Not a correction
if(iMarketCondition != 11) // Not out of sequence
if(iMarketCondition != 3) // Not a BunchedSold trade (reported late)
if(iMarketCondition != 6) // Not a PriorReference trade
if(fLast >= 0.0f) // No negative quotes
Process Quote Here...

If anyone has any suggestions, I would appreciate the help. I have already asked Jim F, but I can't seem to get an answer. :(

Thank you!

tfjield
-Interested User-
Posts: 4
Joined: Jan 10, 2008


Posted: Jan 11, 2008 04:45 PM          Msg. 2 of 2
Jim got back to me. There's a bit that I was missing: Quote Status Bit 13 0x2000 After Market Trade. Didn't even see if after I don't know how many readthroughs of the spec!

So the line above was changed to:

if(iQuoteStatus & 0x0002 || iQuoteStatus & 0x2000) // Trade bit or After Hours Trade bit

and all is good.

Anyway, thank you Jim and everyone else!
 

 

Time: Thu April 25, 2024 7:48 AM CFBB v1.2.0 8 ms.
© AderSoftware 2002-2003