API Support Forum
OEC API > API Support > Orders for some contracts executing, but not sending "Completed" state
Author Topic: Orders for some contracts executing, but not sending "Completed" state
(3 messages, Page 1 of 1)
Moderators: VPfau
TDecilveo930
Posts: 7
Joined: May 11, 2011


Posted: Jul 11, 2011 @ 01:45 AM             Msg. 1 of 3
Hello,

I've noticed a problem with one of the programs I'm developing. When I run the program with FX contracts... everything works fine. However, when I run the program with some futures contracts... (ESU1, for example).... I receive "Sent" and "Working" OrderStates, but I never get a completed one even though the order executes. Is there possibly something going on server-side that could cause this? I've gone over my code and there's nothing on my end that's filtering out these incoming OnOrderStateChanged events so there's no reason I shouldn't see it.

Thanks!

Timothy Decilveo
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jul 11, 2011 @ 08:54 AM             Msg. 2 of 3
Hello, that's strange. Could you send me please an order id for investigation?

Victor Vins
Lead Software Developer
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jul 11, 2011 @ 10:20 AM             Msg. 3 of 3
I see your application throws unhandled exceptions for Completed states in OnOrderStateChanged event handler.

Victor Vins
Lead Software Developer