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)




"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
"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 cannot believe what a difference it makes trading with ProphetX!" - Comment from Bruce in Los Angeles
"Can I get another account from you? I am tired of ******* going down so often" - Comment from George
"If you want customer service that answers the phone, your best bet is IQFeed. I cannot stop praising them or their technical support. They are always there for you, and they are quick. I have used ****** too but the best value is IQFeed." - Comment from Public Forum
"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.
"I just wanted to let u know that your data feed/service is by far the best!!! Your unfiltered tick data is excellent for reading order flow and none of your competitors delivers this quality of data!" - Comment from Peter via Email
"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
"I had always used ******* but for the past 2 weeks have been trying DTN IQFeed. Customer support has been extraordinary. They call just to make sure your problem hasn't recurred." - Comment from Public Forum
"It’s so nice to be working with real professionals!" - Comment from Len
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 »Converting historical data and live streaming data to UTC
Author Topic: Converting historical data and live streaming data to UTC (6 messages, Page 1 of 1)

redblue
-Interested User-
Posts: 51
Joined: Oct 29, 2009


Posted: Nov 4, 2015 08:11 AM          Msg. 1 of 6
Hi,

I'll admit I am very confused, so please excuse the silly questions, but I need to start with the basics...:)

I need to convert all historical and streaming data into UTC.

I understand that all historical data is in EST. To convert this time to UTC, I just need to add 5 hours. However, is this *always* correct with daylight savings? In other words, if I request a months worth (from now) of historical data (say hour bars), do I just add 5 hours to the date time for *all* bars, even though this requests spans a switch from summer time?

Likewise, is the live streaming always in EST, so I'd just need to add 5 hours or does it change to EDT for daylight saving?

Regards,

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


Posted: Nov 4, 2015 08:37 AM          Msg. 2 of 6
Good morning,

For historical data, everything is saved to our history with the time it occurred in EST as is appropriate. There are methods available that handle this conversion automatically for you with considerations for DST already included. Here is one that I found, I am sure there are Java options out there as well.

https://msdn.microsoft.com/en-us/library/system.datetime.touniversaltime(v=vs.110).aspx

I would not delve into all of the craziness of dates and times and the exceptions that may apply if you don't have to.

Tim

redblue
-Interested User-
Posts: 51
Joined: Oct 29, 2009


Posted: Nov 4, 2015 08:58 AM          Msg. 3 of 6
Thanks Tim for quick reply.

Ok. So what does "EST as is appropriate" actually mean? For example:

We're now in EST until 13 Mar 2016, 02:00. What happens after that time? Do you adjust the new bars to 'become' EST as the new data generated wont be in EST but EDT? In other words, is the datetime always the same time away from UTC?

Or, are you saying that the data is actually in EST and when daylight savings is in effect, the data is in EDT. So this would mean for each year, is half the dataset in UTC-5 and the other half UTC-4?

(the reason why this is important is that we're looking at instruments that trade 24 hours a day and we're seeing differences in the historical dataset coming from IQfeed and the broker).

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


Posted: Nov 4, 2015 09:22 AM          Msg. 4 of 6
The data is in EST except for when daylight savings is in effect, then the data is in EDT. So yes, half the year is in UTC-5 and the other half UTC-4?

The method I mentioned takes this into account and handles the instances where the effective date of DST has changed over history.

redblue
-Interested User-
Posts: 51
Joined: Oct 29, 2009


Posted: Nov 5, 2015 03:18 AM          Msg. 5 of 6
Thanks Tim.

I assume the same happens with the live feed (EST/EDT)?

Regards,

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


Posted: Nov 5, 2015 07:48 AM          Msg. 6 of 6
That would be correct.

Tim
 

 

Time: Tue April 23, 2024 5:38 PM CFBB v1.2.0 12 ms.
© AderSoftware 2002-2003