pub struct OKXLiquidationWarningMsg {Show 15 fields
pub inst_type: OKXInstrumentType,
pub inst_family: Option<Ustr>,
pub inst_id: Ustr,
pub mgn_mode: OKXMarginMode,
pub pos_id: Option<Ustr>,
pub pos_side: OKXPositionSide,
pub pos: String,
pub pos_ccy: Option<Ustr>,
pub lever: String,
pub mark_px: String,
pub mgn_ratio: String,
pub ccy: Ustr,
pub c_time: u64,
pub u_time: u64,
pub p_time: Option<String>,
}Expand description
Liquidation risk warning pushed by the liquidation-warning channel.
OKX sends this when an isolated position, or all positions under cross margin, approach liquidation. It is a risk warning only: the position may already be liquidated by the time the message arrives.
Fields§
§inst_type: OKXInstrumentTypeInstrument type.
inst_family: Option<Ustr>Instrument family.
inst_id: UstrInstrument ID.
mgn_mode: OKXMarginModeMargin mode.
pos_id: Option<Ustr>Position ID.
pos_side: OKXPositionSidePosition side.
pos: StringPosition quantity.
pos_ccy: Option<Ustr>Position currency (margin positions only).
lever: StringLeverage.
mark_px: StringMark price.
mgn_ratio: StringMaintenance margin ratio.
ccy: UstrMargin currency.
c_time: u64Creation time, Unix timestamp in milliseconds.
u_time: u64Last update time, Unix timestamp in milliseconds.
p_time: Option<String>Push time, Unix timestamp in milliseconds.
Trait Implementations§
Source§impl Clone for OKXLiquidationWarningMsg
impl Clone for OKXLiquidationWarningMsg
Source§fn clone(&self) -> OKXLiquidationWarningMsg
fn clone(&self) -> OKXLiquidationWarningMsg
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 OKXLiquidationWarningMsg
impl Debug for OKXLiquidationWarningMsg
Source§impl<'de> Deserialize<'de> for OKXLiquidationWarningMsg
impl<'de> Deserialize<'de> for OKXLiquidationWarningMsg
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 OKXLiquidationWarningMsg
impl RefUnwindSafe for OKXLiquidationWarningMsg
impl Send for OKXLiquidationWarningMsg
impl Sync for OKXLiquidationWarningMsg
impl Unpin for OKXLiquidationWarningMsg
impl UnsafeUnpin for OKXLiquidationWarningMsg
impl UnwindSafe for OKXLiquidationWarningMsg
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more