Cancel Order
This command will cancel an order and requires an order ID value and an optional strategy ID value.
The order ID value must match either the order ID value given to an order placed through the PLACE command or, an order name such as ENTRY*, EXIT*, STOP*, SIMSTOP* or TARGET*. The star (*) represents an integer value such as TARGET1 or TARGET2.
Order names are only valid if a valid strategy ID value is passed. The strategy ID value must match a strategy ID value given to a strategy in the PLACE command.
Example Payload
key=your-secret-key;
command=cancel;
order_id=your-order-ID;
strategy_id=your-strategy-id; (optional)
CANCEL works with destination=tradovate;. order_id accepts either the numeric Tradovate order id or the order_id you set on the original place alert (tracked for 7 days). ATM order names (TARGET1, STOP1) and strategy_id are NinjaTrader-only. Follower orders created by the Tradovate copier are canceled along with the leader order.