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 MNQ 12-24:

key=your-secret-key;
command=CANCELORDERS;
account=sim101;
instrument=MNQ 12-24;

Last updated