API Support Forum
OEC API > Documentation > Contract.StartTime in local TZ
Author Topic: Contract.StartTime in local TZ
(2 messages, Page 1 of 1)
Moderators: VPfau
jlanawalt
Posts: 88
Joined: Feb 12, 2009


Posted: Feb 24, 2009 @ 12:16 PM             Msg. 1 of 2
The documentation for the Contract's StartTime property says:

StartTime: Trading session start time, in exchange time zone

It is our experience that the values of this property is already in the system's local time and must be converted to be exchange time. Here are some examples when running the software in our local timezone today (MST-7)


sym name .StartTime OEC Available Contracts Open
6C Canadian Dollar 4:00 PM 5:00 PM (CST/CDT)*
ZC Corn 5:00 PM 6:00 PM (CST/CDT)*
OJ-M Orange Juice 5:00 AM 7:00 AM (EST/EDT)

* I double-checked these via the Contract Details output of CppCOMSample.

While I didn't list it for brevity, the .StopTime property is also pre-adjusted to local time.
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Feb 24, 2009 @ 03:02 PM             Msg. 2 of 2
Yes, you are correct - API shows session times in local timezone. We will fix the documentation.