Click or drag to resize

Orders mass cancel

Orders mass cancel examples

To cancel all ordinary orders (OrderTypesLimit) for the specified portfolio and instrument:

C#
trader.CancelOrders(false, MainWindow.Instance.Portfolio, null, null, security);

To cancel all orders for the specified instrument:

C#
trader.CancelOrders(null, null, null, null, security);

To cancel all long stop orders:

C#
trader.CancelOrders(true, null, OrderDirections.Buy, null, null);