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)




"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
"IQ feed is brilliant. The support is mind-bending. What service!" - Comment from Public Forum Post
"If you are serious about your trading I would not rely on IB data for serious daytrading. Took me a while to justify the cost of IQ Feed and in the end, it's just a 2 point stop on ES. Better safe than sorry" - Comment from Public Forum
"With HUGE volume on AAPL and RIMM for 2 days, everyone in a trading room was whining about freezes, crashes and lag with *******, RealTick, TS and Cyber. InvestorRT with IQFeed was rock solid. I mean SOLID!" - Comment from Public IRC Chat
"You have an excellent feed. Very few spikes for Spot Forex." - Comment from Public Forum Post
"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
"This beats the pants off CQG, I am definitely switching to the ProphetX 3.0!" - Comment from Stephen
"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
"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
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 May 7, 2024 3:20 AM CFBB v1.2.0 12 ms.
© AderSoftware 2002-2003