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-25:

key=your-secret-key;
command=CANCELORDERS;
account=sim101;
instrument=ES 03-25;

Last updated