is there a way in NinjaScript to obtain the message for an order being rejected ? In the order's Table in I can see the reason (eg. "margin not sufficent") when I hover the mouse over the "State" column. I'd like to have that information in the Strategie script.
See snipplet:
protected override void OnOrderUpdate(IOrder order)
{
if (order.OrderState==OrderState.Rejected {
string reason = ??? // <---- where to get it?
}
...
}
Thanks,
Toby

Comment