Skip to main content

Cancel Orders

Similar to the FLATTEN positions command, CANCELORDERS provides the option to either cancel all orders in an account, or optionally cancel all orders in an account for a specific instrument.

Example Payload

The following alert will cancel all orders in the sim101 account:

key=your-secret-key;
command=cancelorders;
account=sim101;

The following alert will cancel all orders in the sim101 account for instrument ES 03-26:

key=your-secret-key;
command=cancelorders;
account=sim101;
instrument=ES 06-26;