pub struct ClosePositionBody {
pub long_units: Option<String>,
pub long_client_extensions: Option<ClientExtensions>,
pub short_units: Option<String>,
pub short_client_extensions: Option<ClientExtensions>,
}Expand description
Request body for close_position.
Fields§
§long_units: Option<String>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.
long_client_extensions: Option<ClientExtensions>The client extensions to add to the MarketOrder used to close the long position.
short_units: Option<String>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.
short_client_extensions: Option<ClientExtensions>The client extensions to add to the MarketOrder used to close the short position.
Trait Implementations§
Source§impl Clone for ClosePositionBody
impl Clone for ClosePositionBody
Source§impl Debug for ClosePositionBody
impl Debug for ClosePositionBody
Source§impl<'de> Deserialize<'de> for ClosePositionBody
impl<'de> Deserialize<'de> for ClosePositionBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ClosePositionBody
impl PartialEq for ClosePositionBody
Source§impl Serialize for ClosePositionBody
impl Serialize for ClosePositionBody
impl StructuralPartialEq for ClosePositionBody
Auto Trait Implementations§
impl Freeze for ClosePositionBody
impl RefUnwindSafe for ClosePositionBody
impl Send for ClosePositionBody
impl Sync for ClosePositionBody
impl Unpin for ClosePositionBody
impl UnsafeUnpin for ClosePositionBody
impl UnwindSafe for ClosePositionBody
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more