#[non_exhaustive]pub struct AdlWarningUpdate {
pub inst_type: String,
pub inst_family: String,
pub ccy: String,
pub max_bal: NumberString,
pub adl_rec_bal: NumberString,
pub bal: NumberString,
pub max_bal_ts: NumberString,
pub adl_type: String,
pub state: String,
pub adl_bal: NumberString,
pub ts: NumberString,
pub extra: ExtraFields,
}Expand description
adl-warning channel row.
OKX docs: https://www.okx.com/docs-v5/en/#order-book-trading-public-data-ws-adl-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., SWAP, FUTURES, OPTION.
inst_family: StringInstrument family, e.g., BTC-USD.
ccy: StringSettlement currency, e.g., BTC (inverse) or USDT (linear).
max_bal: NumberStringAccount balance at the time when the ADL risk was at its maximum.
adl_rec_bal: NumberStringRecommended balance to reduce ADL risk.
bal: NumberStringCurrent account balance.
max_bal_ts: NumberStringTime at which max_bal was recorded (Unix milliseconds).
adl_type: StringADL type.
Documented values: position (position-level ADL), account (account-level ADL).
state: StringADL risk state.
Documented values: 1 (ADL will be triggered soon), 2 (ADL is triggered).
adl_bal: NumberStringBalance at which ADL would be triggered.
ts: NumberStringPush time (Unix milliseconds).
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for AdlWarningUpdate
impl Clone for AdlWarningUpdate
Source§fn clone(&self) -> AdlWarningUpdate
fn clone(&self) -> AdlWarningUpdate
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 AdlWarningUpdate
impl Debug for AdlWarningUpdate
Source§impl Default for AdlWarningUpdate
impl Default for AdlWarningUpdate
Source§fn default() -> AdlWarningUpdate
fn default() -> AdlWarningUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AdlWarningUpdate
impl<'de> Deserialize<'de> for AdlWarningUpdate
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 AdlWarningUpdate
impl RefUnwindSafe for AdlWarningUpdate
impl Send for AdlWarningUpdate
impl Sync for AdlWarningUpdate
impl Unpin for AdlWarningUpdate
impl UnsafeUnpin for AdlWarningUpdate
impl UnwindSafe for AdlWarningUpdate
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