pub struct ClosePositionBody {
pub long_units: Option<PositionCloseoutUnits>,
pub long_client_extensions: Option<ClientExtensions>,
pub short_units: Option<PositionCloseoutUnits>,
pub short_client_extensions: Option<ClientExtensions>,
}Expand description
Request body for close_position.
Fields§
§long_units: Option<PositionCloseoutUnits>Indication of how much of the long Position to closeout. Either the string “ALL”, the string “NONE”, or
a DecimalNumber representing how many units of the long position to close using a PositionCloseout
MarketOrder. The units specified must always be positive. Omitting this field closes all units
on this side (the provider default is ALL); specify NONE to leave it open.
long_client_extensions: Option<ClientExtensions>The client extensions to add to the MarketOrder used to close the long position.
short_units: Option<PositionCloseoutUnits>Indication of how much of the short Position to closeout. Either the string “ALL”, the string “NONE”, or
a DecimalNumber representing how many units of the short position to close using a PositionCloseout
MarketOrder. The units specified must always be positive. Omitting this field closes all units
on this side (the provider default is ALL); specify NONE to leave it open.
short_client_extensions: Option<ClientExtensions>The client extensions to add to the MarketOrder used to close the short position.