|API Support » Order replace event (not getting update on API session) Dec 06, 2018 @ 09:18 AM (Total replies: 1)|
Order modification doesn't change OrderState, which is why the OnOrderStateChanged event isn't raised.
The modify request is represented by a Command, and the server responds to the modify request by updating Order.Commands, so you should be able to listen to Order modifications with OnCommandUpdated.
|API Support » Trailing Stop Orders being rejected Apr 10, 2018 @ 08:04 AM (Total replies: 1)|
Hi Pete. Sorry to hear you're having trouble. We have plans to improve OrderDraft validation feedback but it's still a ways away.
I'm thinking that you need to set myOrderDraft.Type to either TrailingStopLimit or TrailingStopLoss.