API Support Forum
OEC API > API Support > Tick's Timing
Author Topic: Tick's Timing
(4 messages, Page 1 of 1)
Moderators: VPfau
JWeissbard91
Posts: 21
Joined: Dec 18, 2007


Posted: Feb 26, 2008 @ 11:13 AM             Msg. 1 of 4
Hi,
I seem to be getting Ticks out of order at some points. I get a string of Ticks and the I get a wide price jump. When I look at the timestamp it seems to be out of order. Is this a possibility? Is there a reason for this? Right now I'm filtering these out, but I'm wondering if there's a better way to deal with it.

Thanks,
Jonathan Weissbard
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Feb 26, 2008 @ 11:25 AM             Msg. 2 of 4
when network connection between OEC API and OEC Price Server is broken, api automatically reconnects and re-executes all historical requests, so all ticks starting from StartDate parameter of SubscribeTicks method are resent.

You can use future StartDate for subscription to avoid historical ticks and receive only new tick updates.
JWeissbard91
Posts: 21
Joined: Dec 18, 2007


Posted: Feb 26, 2008 @ 11:28 AM             Msg. 3 of 4
Hi,
I use a StartDate of Now() and I don't think I'm getting disconnects, any other possibilities?

Thanks,
Jonathan Weissbard
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Feb 26, 2008 @ 11:53 AM             Msg. 4 of 4
please try to use UtcNow.

If problem persists, please specify time of incident, what username you've used and what server you were connected to, so we can investigate the problem better.