API Support Forum
OEC API > API Support > OnCommandUpdated not working?
Author Topic: OnCommandUpdated not working?
(3 messages, Page 1 of 1)
Moderators: VPfau
THarnett81
Posts: 78
Joined: Jan 13, 2011


Posted: Apr 20, 2011 @ 05:14 PM             Msg. 1 of 3
I've set a handler for OnCommandUpdated, but it never gets triggered.

As I understand it, canceling an order should cause both OnCommandUpdated events and OnOrderStateChanged events. I see the latter, so I know my order is being properly cancelled, but I never see the former.

Is there something else I must do in order to see Command updates?
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Apr 27, 2011 @ 01:24 PM             Msg. 2 of 3
Hello,

OECAPI raises OnCommandUpdated event handler every time when command state becomes Executed.

Victor Vins
Software Developer
THarnett81
Posts: 78
Joined: Jan 13, 2011


Posted: Apr 28, 2011 @ 02:19 PM             Msg. 3 of 3
I think the test connection was being flaky; the next day I was able to see the events.

Seems like the test connection gets funky in the late afternoon; sometime after 4 I usually see orders stop being accepted (though not rejected either).