pub struct LiquidationEvent {
pub exchange: Exchange,
pub symbol: Symbol,
pub timestamp: i64,
pub side: Side,
pub price: Decimal,
pub quantity: Decimal,
pub order_id: Option<String>,
}Expand description
Liquidation event (futures markets)
Fields§
§exchange: Exchange§symbol: Symbol§timestamp: i64§side: SideSide of the liquidated position
price: DecimalLiquidation price
quantity: DecimalLiquidated quantity
order_id: Option<String>Order ID (if available)
Implementations§
Trait Implementations§
Source§impl Clone for LiquidationEvent
impl Clone for LiquidationEvent
Source§fn clone(&self) -> LiquidationEvent
fn clone(&self) -> LiquidationEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LiquidationEvent
impl Debug for LiquidationEvent
Source§impl<'de> Deserialize<'de> for LiquidationEvent
impl<'de> Deserialize<'de> for LiquidationEvent
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
Auto Trait Implementations§
impl Freeze for LiquidationEvent
impl RefUnwindSafe for LiquidationEvent
impl Send for LiquidationEvent
impl Sync for LiquidationEvent
impl Unpin for LiquidationEvent
impl UnsafeUnpin for LiquidationEvent
impl UnwindSafe for LiquidationEvent
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