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 like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"IQFeed version 4 is a real screamer compared to anything else I have seen." - Comment from Tom
"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
"For anyone considering using DTN.IQ for a data feed, my experience with the quality of data and the tech support has been very positive." - Comment from Public Forum
"Excellent datafeed !!!" - Comment from Arely
"I have to tell you though that using the IQFeed API is about the easiest and cleanest I have seen for some time." - Comment from Jim
"Awesome response, as usual. It is a sincere and refreshing pleasure to do business with DTN, compared to your competition." - Comment from Ryan
"My broker in Davenport suggested I give you a try as he uses your service and says its the best." - Comment from Bill 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 will tell others who want to go into trading that DTN ProphetX is an invaluable tool, I don't think anyone can trade without it..." - Comment from Luther
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: Fri April 26, 2024 5:32 PM CFBB v1.2.0 15 ms.
© AderSoftware 2002-2003