#[non_exhaustive]pub struct LiquidationWarningUpdate {
pub inst_type: String,
pub inst_id: String,
pub pos_side: String,
pub pos: NumberString,
pub mgn_mode: String,
pub mgn_ratio: NumberString,
pub mark_px: NumberString,
pub liq_px: NumberString,
pub ccy: String,
pub u_time: NumberString,
pub p_time: NumberString,
pub extra: ExtraFields,
}Expand description
Private liquidation-warning channel row.
OKX docs: https://www.okx.com/docs-v5/en/#trading-account-websocket-liquidation-warning-channel
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.inst_type: StringInstrument type, e.g., MARGIN, SWAP, FUTURES, OPTION.
inst_id: StringInstrument ID, e.g., BTC-USDT-SWAP.
pos_side: StringPosition side: long, short, or net.
pos: NumberStringPosition quantity (contracts for derivatives).
mgn_mode: StringMargin mode: cross or isolated.
mgn_ratio: NumberStringCurrent margin ratio; liquidation is triggered when this reaches 1.
mark_px: NumberStringCurrent mark price.
liq_px: NumberStringEstimated liquidation price.
ccy: StringSettlement or margin currency.
u_time: NumberStringLast update time (Unix milliseconds).
p_time: NumberStringPush time (Unix milliseconds).
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for LiquidationWarningUpdate
impl Clone for LiquidationWarningUpdate
Source§fn clone(&self) -> LiquidationWarningUpdate
fn clone(&self) -> LiquidationWarningUpdate
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 LiquidationWarningUpdate
impl Debug for LiquidationWarningUpdate
Source§impl Default for LiquidationWarningUpdate
impl Default for LiquidationWarningUpdate
Source§fn default() -> LiquidationWarningUpdate
fn default() -> LiquidationWarningUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LiquidationWarningUpdate
impl<'de> Deserialize<'de> for LiquidationWarningUpdate
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 LiquidationWarningUpdate
impl RefUnwindSafe for LiquidationWarningUpdate
impl Send for LiquidationWarningUpdate
impl Sync for LiquidationWarningUpdate
impl Unpin for LiquidationWarningUpdate
impl UnsafeUnpin for LiquidationWarningUpdate
impl UnwindSafe for LiquidationWarningUpdate
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