API Support Forum
OEC API > API Support > Time on DOM changes
Author Topic: Time on DOM changes
(4 messages, Page 1 of 1)
Moderators: VPfau
SierraChart
Posts: 111
Joined: Jul 17, 2007


Posted: Jul 17, 2007 @ 02:11 PM             Msg. 1 of 4
Is there a way I can get the current server time when I get a OnDOMChanged event? I could use the local computer clock, but I'd rather have times that are consistent with the times that are given with prices in the OnPriceTick event.
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jul 17, 2007 @ 02:36 PM             Msg. 2 of 4
Unfortunately, there is no way - DOM updates do not contain server timestamp.
SierraChart
Posts: 111
Joined: Jul 17, 2007


Posted: Jul 17, 2007 @ 06:01 PM             Msg. 3 of 4
Is there any way I can get the server time in general? Even if it's just on connection and once every minute, I can work with that. If not, I'm going to have to go with the local computer clock for timestamping everything (including ticks), which I'd rather not have to do.
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jul 18, 2007 @ 08:16 AM             Msg. 4 of 4
Sorry, but there is no such functionality in the OEC API.