pub struct MarketOrderPositionCloseout {
pub units: Option<String>,
pub instrument: Option<String>,
}
Fields§
§units: Option<String>
Indication of how much of the Position to close. Either “ALL”, or a DecimalNumber reflection a partial close of the Trade. The DecimalNumber must always be positive, and represent a number that doesn’t exceed the absolute size of the Position.
instrument: Option<String>
The instrument of the Position being closed out. format: A string containing the base currency and quote currency delimited by a “_”.
Implementations§
source§impl MarketOrderPositionCloseout
impl MarketOrderPositionCloseout
pub fn new() -> MarketOrderPositionCloseout
sourcepub fn with_units(self, x: String) -> Self
pub fn with_units(self, x: String) -> Self
Indication of how much of the Position to close. Either “ALL”, or a DecimalNumber reflection a partial close of the Trade. The DecimalNumber must always be positive, and represent a number that doesn’t exceed the absolute size of the Position.
- param String
- return MarketOrderPositionCloseout
sourcepub fn with_instrument(self, x: String) -> Self
pub fn with_instrument(self, x: String) -> Self
The instrument of the Position being closed out. format: A string containing the base currency and quote currency delimited by a “_”.
- param String
- return MarketOrderPositionCloseout