#[non_exhaustive]pub struct CopyTradingNotification {
pub info_type: String,
pub inst_type: String,
pub inst_id: String,
pub side: String,
pub pos_side: String,
pub sub_pos_id: String,
pub unique_code: String,
pub max_lead_trader_num: NumberString,
pub min_lead_eq: NumberString,
pub extra: ExtraFields,
}Expand description
copytrading-lead-notification channel row.
OKX docs: https://www.okx.com/docs-v5/en/#copy-trading-websocket-copy-trading-notification-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.info_type: StringNotification type.
1 lead trading failed: max position limit reached.
2 lead trading failed: max daily lead count reached.
3 lead trading failed: USDT equity below minimum.
inst_type: StringInstrument type, e.g., SWAP.
inst_id: StringInstrument ID, e.g., BTC-USDT-SWAP.
side: StringOrder side: buy or sell.
pos_side: StringPosition side: long, short, or net.
sub_pos_id: StringLead position ID assigned by OKX.
unique_code: StringUnique code of the lead trader.
max_lead_trader_num: NumberStringMaximum daily number of lead trades.
min_lead_eq: NumberStringMinimum USDT equity required for lead trading.
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for CopyTradingNotification
impl Clone for CopyTradingNotification
Source§fn clone(&self) -> CopyTradingNotification
fn clone(&self) -> CopyTradingNotification
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 CopyTradingNotification
impl Debug for CopyTradingNotification
Source§impl Default for CopyTradingNotification
impl Default for CopyTradingNotification
Source§fn default() -> CopyTradingNotification
fn default() -> CopyTradingNotification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CopyTradingNotification
impl<'de> Deserialize<'de> for CopyTradingNotification
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 CopyTradingNotification
impl RefUnwindSafe for CopyTradingNotification
impl Send for CopyTradingNotification
impl Sync for CopyTradingNotification
impl Unpin for CopyTradingNotification
impl UnsafeUnpin for CopyTradingNotification
impl UnwindSafe for CopyTradingNotification
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