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)




"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
"Just a thank you for the very helpful and prompt assistance and services. You provided me with noticeably superior service in my setup compared to a couple of other options I had looked at." - Comment from John
"As a past ******* customer(and not a happy one), IQ Feed by DTN is a much better and cheaper product with great customer support. I have had no problems at all since switching over." - Comment from Public Forum
"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
"Previously I was using *******. IQFeed is WAY more economical, and for my charting needs is just as good, if not better." - Comment from Public Forum Post
"I noticed that ******* quotes locked up shortly after the interest rate announcement yesterday while yours stayed stable." - Comment from Ron in Utah
"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.
"I am very happy I changed. I love the product, but more so I am thrilled with Tech Support. You are knowledgeable, polite, pleasant and professional." - Comment from Pat
"Thanks for all of your help. Great customer service deserves to be recognized which one the reasons I've been a customer of DTN for over 10 years!" - Comment from Stuart
"Thanks for following up with me. You guys do a great job in tech support." - Comment from Phelps
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 »How should I back-fill time&sales or "trades only" data?
Author Topic: How should I back-fill time&sales or "trades only" data? (3 messages, Page 1 of 1)

andrewm
-Interested User-
Posts: 52
Joined: Feb 23, 2015


Posted: Feb 23, 2015 01:59 PM          Msg. 1 of 3
I see that I can get time&sales using this command on the level1 port:

t[SYMBOL]<CR><LF>
Begins a trades only watch on a symbol for Level 1 updates.
[SYMBOL] - The symbol that you wish to receive updates on

It does not look like there is a convenient way to back-fill that data. Even if I pull in historical tick data using the HTD command on the Lookup Socket (port 9100 by default) I would need to figure out the point at which the realtime data has caught up with the historical. Am I missing some easier way to accomplish this?

Thanks

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


Posted: Feb 25, 2015 05:54 AM          Msg. 2 of 3
Sorry Andrew,

I lost sight of your post. The best way to do this would be to start watching the datafeed and make a note of the very first tick ID you receive. We'll say that tick ID was 107, once you have that, start building your chart with the live data. Then request historical data and you will get the tick ids from say 1 to 130, just append the 1 -106 on the front of the chart and toss the rest away. This should give you a complete chart like what I think you are looking for.

Tim

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


Posted: Feb 25, 2015 08:14 AM          Msg. 3 of 3
In addition, while I am thinking on it, in cases where tick numbers are either not sequential or the data does not have a tick ID available, (like with Forex data), you can use the current total volume as an indicator as well.

Tim
 

 

Time: Wed May 8, 2024 3:33 PM CFBB v1.2.0 14 ms.
© AderSoftware 2002-2003