The resource loading... loading...

PD_SHORT

PD_SHORT is the value of the Type attribute in the {@struct/Position Position} structure, indicating the short position type.

number

The value of PD_SHORT is 1. For short positions in the contract market, use exchange.SetDirection(“closesell”) to set the direction of closing the position and close the position of that type.

{@var/POSITION_DIRECTION/PD_LONG PD_LONG}

PD_LONG ORDER_OFFSET