Reverse Position

This command will close the current position and place an order in the opposite direction. The field requirements are identical to the PLACE command.

Example Payload

This command will close the current position and place an order in the opposite direction. The field requirements are identical to the PLACE command.

key=your-secret-key;
command=REVERSEPOSITION;
account=sim101;
instrument=NQ 12-24;
action=SELL;
qty=1;
order_type=MARKET;
tif=DAY;

When reversing a position with an ATM strategy, you'll want to ensure that the action is also the opposite of the existing position you intend to reverse.

Last updated