API Support Forum
OEC API > Order Execution > Order state change response
Author Topic: Order state change response
(4 messages, Page 1 of 1)
Moderators: VPfau
BGoyal9136
Posts: 27
Joined: Sep 21, 2017


Posted: Sep 10, 2019 @ 11:02 AM             Msg. 1 of 4
We are using OEC api. while placing market order With GTC Order Flag i am not getting order state change response on OEC.API.OnOrderStateChangedEvent.could you please help us to sort out this.
CMicciche902
Posts: 367
Joined:


Posted: Sep 10, 2019 @ 11:14 AM             Msg. 2 of 4
Do not use GTC flag for markets orders. We may allow this in simulated environment but some real futures exchange will reject your order. Market orders will either fill right away or reject if not appropriate. I'm showing the orders were sent with states of Sent, Accepted, Working, and Completed. All 9 orders sent today followed this staging of events. Are you getting this event with OEC Advanced Example app, but not your app named "TradeStreategy" [SIC]?
Chris M
BGoyal9136
Posts: 27
Joined: Sep 21, 2017


Posted: Sep 10, 2019 @ 11:50 AM             Msg. 3 of 4
Hi Chris,


Thanks for reply. So GTC will work for limit order?
CMicciche902
Posts: 367
Joined:


Posted: Sep 10, 2019 @ 12:16 PM             Msg. 4 of 4
Sure, plus Stop, Stop Limit, Trailing Stop, etc. GTC is intended for order to work for many sessions where fill is not guaranteed immediate fill.
Chris M