Author |
Topic: Order state change response (4 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
BGoyal9136 Posts: 27 Joined: Sep 21, 2017 |
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: |
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 |
Hi Chris,
Thanks for reply. So GTC will work for limit order? |
||||
CMicciche902 Posts: 367 Joined: |
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
|
||||