Reverse

A true reverse command that inverts an existing position.

Unlike Reverse Position, which equates to a close position + entry of a specific new order, Reverse is a true inversion of an existing position.

The Reverse command accepts only the accountand instrument fields. If no position exists in the underlying instrument, CrossTrade will take no action. Otherwise, the position is inverted, i.e., if it was previously long 4 contracts, it will become short 4 contracts.

All orders will submitted as MARKET orders to perform the reversal.

Requires CrossTrade Add-On v1.6.0 minimum version.

Example Payload

This command will reverse the current position and result in an identical position in the opposite direction.

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

Last updated