pub struct OrderUpdateData {Show 30 fields
pub symbol: String,
pub client_order_id: String,
pub side: String,
pub order_type: String,
pub time_in_force: String,
pub quantity: String,
pub price: String,
pub avg_price: String,
pub stop_price: String,
pub execution_type: String,
pub order_status: String,
pub order_id: i64,
pub last_filled_qty: String,
pub cumulative_filled_qty: String,
pub last_filled_price: String,
pub commission_asset: Option<String>,
pub commission: Option<String>,
pub trade_id: i64,
pub bids_notional: String,
pub ask_notional: String,
pub is_maker: bool,
pub is_reduce_only: bool,
pub working_type: String,
pub orig_order_type: String,
pub position_side: String,
pub close_position: bool,
pub activation_price: Option<String>,
pub callback_rate: Option<String>,
pub realized_profit: String,
pub order_trade_time: u64,
}Expand description
Order details within an OrderUpdateEvent.
Fields§
§symbol: String§client_order_id: String§side: String§order_type: String§time_in_force: String§quantity: String§price: String§avg_price: String§stop_price: String§execution_type: String§order_status: String§order_id: i64§last_filled_qty: String§cumulative_filled_qty: String§last_filled_price: String§commission_asset: Option<String>Commission asset — only present when commission is charged.
commission: Option<String>Commission amount — only present when commission is charged.
trade_id: i64§bids_notional: String§ask_notional: String§is_maker: bool§is_reduce_only: bool§working_type: String§orig_order_type: String§position_side: String§close_position: bool§activation_price: Option<String>Activation price — only present for TRAILING_STOP_MARKET orders.
callback_rate: Option<String>Callback rate — only present for TRAILING_STOP_MARKET orders.
realized_profit: String§order_trade_time: u64Trait Implementations§
Source§impl Debug for OrderUpdateData
impl Debug for OrderUpdateData
Source§impl<'de> Deserialize<'de> for OrderUpdateData
impl<'de> Deserialize<'de> for OrderUpdateData
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 OrderUpdateData
impl RefUnwindSafe for OrderUpdateData
impl Send for OrderUpdateData
impl Sync for OrderUpdateData
impl Unpin for OrderUpdateData
impl UnsafeUnpin for OrderUpdateData
impl UnwindSafe for OrderUpdateData
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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