pub struct Liquidation {
pub info: Option<Value>,
pub symbol: String,
pub side: String,
pub order_type: String,
pub time: i64,
pub price: f64,
pub quantity: f64,
pub average_price: f64,
}Expand description
Liquidation order information.
Represents an order that was forcefully closed due to insufficient margin.
Fields§
§info: Option<Value>Raw API response data.
symbol: StringTrading pair symbol.
side: StringOrder side (“BUY” or “SELL”).
order_type: StringOrder type (“LIMIT” or “MARKET”).
time: i64Liquidation timestamp in milliseconds.
price: f64Liquidation price.
quantity: f64Liquidation quantity.
average_price: f64Average execution price.
Trait Implementations§
Source§impl Clone for Liquidation
impl Clone for Liquidation
Source§fn clone(&self) -> Liquidation
fn clone(&self) -> Liquidation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Liquidation
impl Debug for Liquidation
Source§impl Default for Liquidation
impl Default for Liquidation
Source§fn default() -> Liquidation
fn default() -> Liquidation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Liquidation
impl<'de> Deserialize<'de> for Liquidation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Liquidation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Liquidation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Liquidation
impl Serialize for Liquidation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Liquidation
impl RefUnwindSafe for Liquidation
impl Send for Liquidation
impl Sync for Liquidation
impl Unpin for Liquidation
impl UnwindSafe for Liquidation
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