Pending Order Rejection Event

Created at 28 Dec 2015, 22:59
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
ClickAlgo's avatar

ClickAlgo

Joined 05.02.2015

Pending Order Rejection Event
28 Dec 2015, 22:59


Hello Spotware,

I would like this answer too, I need to capture the event when a pending order is rejected while it is getting filled which could be hours after it has been placed.

It looks like the OnError event method captures errors that occur with Positions, could this method get called when a pending order is rejected for any reason? If not does anybody know of a way to get the TradeResult of a rejected pending order.

protected override void OnError(Error error)
{
    var result = error.TradeResult;
    Print(result);
}

This thread is also in the Platform Support, sorry I put it there accidentally, it should be in the API support, so if you answer the question here, you can delete it there.


@ClickAlgo
Replies

Spotware
29 Dec 2015, 10:59

Dear Trader,

Currently there is no way to detect a rejected pending order after it was successfully placed. We will consider implementing it in the future. Stay tuned.


@Spotware