pub struct CloseTradeBody {
pub units: Option<String>,
}Expand description
Request body for close_trade.
Fields§
§units: Option<String>Indication of how much of the Trade to close. Either the string “ALL” (indicating that all of the Trade should be closed), or a DecimalNumber representing the number of units of the open Trade to Close using a TradeClose MarketOrder. The units specified must always be positive, and the magnitude of the value cannot exceed the magnitude of the Trade’s open units.
Trait Implementations§
Source§impl Clone for CloseTradeBody
impl Clone for CloseTradeBody
Source§impl Debug for CloseTradeBody
impl Debug for CloseTradeBody
Source§impl<'de> Deserialize<'de> for CloseTradeBody
impl<'de> Deserialize<'de> for CloseTradeBody
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 CloseTradeBody
impl PartialEq for CloseTradeBody
Source§impl Serialize for CloseTradeBody
impl Serialize for CloseTradeBody
impl StructuralPartialEq for CloseTradeBody
Auto Trait Implementations§
impl Freeze for CloseTradeBody
impl RefUnwindSafe for CloseTradeBody
impl Send for CloseTradeBody
impl Sync for CloseTradeBody
impl Unpin for CloseTradeBody
impl UnsafeUnpin for CloseTradeBody
impl UnwindSafe for CloseTradeBody
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