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)




"Everything is working amazing now. I'm already impressed with the true-tick feed of IQFeed and it's ability to support my 480 symbol layout." - Comment from Tyler via Email
"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
"I used to have *******, but they are way more money for the same thing. I have had no probs with data from DTN since switching over." - Comment from Public Forum Post
"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
"The service is great, I see a noticeable improvement in my volume profiles over [broker]'s data feed" - Comment from Larry
"If someone needs the best quality data and backfill beyond what their broker provides at a rate that is the best in the industry, I highly recommend IQFeed." - Comment from Josh via Public Forum
"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
"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.
"After all the anxiety I had with my previous data provider it is a relief not to have to worry about data speed and integrity." - Comment from Eamonn
"I am keeping IQFeed, much better reliabilty than *******. I may refer a few other people in the office to switch as well." - Comment from Don
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 »RequestMinuteHistory is calendar days, RequestDayHistory is trading days
Author Topic: RequestMinuteHistory is calendar days, RequestDayHistory is trading days (4 messages, Page 1 of 1)

dkobelt
-Interested User-
Posts: 14
Joined: Jan 2, 2007

Can I have More Data please? :)


Posted: Jan 15, 2007 01:47 PM          Msg. 1 of 4
Making a COM call to RequestDayHistory has a parameter for # of days.
This always returns 3 trading days when 3 are asked for.

However, RequestMINUTEHistory has a parameter for # of days, but the results depend on the day of the week, or holidays.
A weekend and a market holiday (or other special observances) means I might not get any days, or 1 or 2 or 3 days of data.

Can the Minute history be made consistent like Day, Week and Month history requests?

I know you have the data to figure this out :)

I can add code on my side, but you did such good job with Day/Week/Month. Also, its not simple to recongize imprompto market closings for presidents, etc. Whereas you have the trading days known already.

Thank you

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


Posted: Jan 15, 2007 03:37 PM          Msg. 2 of 4
There is actually nothing built into our system that recognises "trading days".

The reasoning this is done this way is so that it is universal to all markets and exchanges.

All of our history data is built from the trades that come through the Level 1 Feed.

Our servers have a nightly process that builds daily/weekly/monthly data from the current day's ticks. If there are no ticks, then there is no daily datapoint created. If there is even a single trade, then a daily datapoint gets built.

This same behavior also extends to minute history vs tick history. If no trades happen in an interval, no minute datapoint is returned for that interval.

While it would be possible (although not necessarily "easy" due to the way the system is setup) to account for non-traded days in minute history, it would require a change in protocol that would require most of our 3rd Party Applications to update thier software to accomodate.

As a result, it is not likely that a change such as this will happen soon but it is certainly a possibility for the future at some point.

FullyArticulate
-DTN Guru-
Posts: 332
Joined: Sep 22, 2005


Posted: Jan 16, 2007 11:05 AM          Msg. 3 of 4
Hi Steve,

I think he's actually arguing the opposite. Today, a HD query gives you trading days, whereas an HM query gives you calendar days.

If it's a Sunday, and you query one day of daily history, you'll get Friday's data. If you query one day of minute history, you get nothing back at all.

While I agree there'd be a 3rd party application problem, this inconsistency is confusing and sometimes difficult to work around. Somewhere in your server, you must have a comparison to calendar date when an HM query is done, but a simple "days of datapoints" comparison when an HD query is done.

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


Posted: Jan 16, 2007 12:24 PM          Msg. 4 of 4
You are correct that there must be a calendar date calculation somewhere in the history server but I would guess (I don't deal with the server code at all) that there is not a "days of data points" comparison done.

The reason, is that with a daily/weekly/monthly/"lastX ticks" request, you are requesting a specific number of data points. Whereas, with a minute/"tick days" request, you are requesting an indeterminate number of data points so the date calulation has to be made. Due to the way the history servers work (as described above), they build trading days automaticly for requests that you specify the number of data points.

We understand that there are flaws with the current system and it should be possible to make this an option in the future. Right now it wouldn't be an easy thing to implement but we will keep it in mind for future development.
 

 

Time: Tue May 7, 2024 2:02 PM CFBB v1.2.0 15 ms.
© AderSoftware 2002-2003