To achieve that I am subscribing to account.OrderUpdate:
account.OrderUpdate += OnOrderUpdate;
private void OnOrderUpdate(object sender, OrderEventArgs e)
{
if (e.OrderState == OrderState.Initialized)
e.Order.Account.Cancel(new[] { e.Order });
}
Is there any method to prevent order from being placed without such a message?
Thanks

Comment