pub struct OrderUpdateData {Show 34 fields
pub symbol: Ustr,
pub client_order_id: String,
pub side: BinanceSide,
pub order_type: BinanceFuturesOrderType,
pub time_in_force: BinanceTimeInForce,
pub original_qty: String,
pub original_price: String,
pub average_price: String,
pub stop_price: String,
pub execution_type: BinanceExecutionType,
pub order_status: BinanceOrderStatus,
pub order_id: i64,
pub last_filled_qty: String,
pub cumulative_filled_qty: String,
pub last_filled_price: String,
pub commission_asset: Option<Ustr>,
pub commission: Option<String>,
pub trade_time: i64,
pub trade_id: i64,
pub bids_notional: Option<String>,
pub asks_notional: Option<String>,
pub is_maker: bool,
pub is_reduce_only: bool,
pub working_type: BinanceWorkingType,
pub original_order_type: BinanceFuturesOrderType,
pub position_side: BinancePositionSide,
pub close_position: Option<bool>,
pub activation_price: Option<String>,
pub callback_rate: Option<String>,
pub price_protect: Option<bool>,
pub realized_profit: String,
pub stp_mode: Option<String>,
pub price_match: Option<String>,
pub good_till_date: Option<i64>,
}Expand description
Order update data payload.
Fields§
§symbol: UstrSymbol.
client_order_id: StringClient order ID.
side: BinanceSideOrder side.
order_type: BinanceFuturesOrderTypeOrder type.
time_in_force: BinanceTimeInForceTime in force.
original_qty: StringOriginal quantity.
original_price: StringOriginal price.
average_price: StringAverage price.
stop_price: StringStop price.
execution_type: BinanceExecutionTypeExecution type.
order_status: BinanceOrderStatusOrder status.
order_id: i64Order ID.
last_filled_qty: StringLast executed quantity.
cumulative_filled_qty: StringCumulative filled quantity.
last_filled_price: StringLast executed price.
commission_asset: Option<Ustr>Commission asset.
commission: Option<String>Commission amount.
trade_time: i64Order trade time.
trade_id: i64Trade ID.
bids_notional: Option<String>Bids notional.
asks_notional: Option<String>Asks notional.
is_maker: boolIs maker.
is_reduce_only: boolIs reduce only.
working_type: BinanceWorkingTypeWorking type.
original_order_type: BinanceFuturesOrderTypeOriginal order type.
position_side: BinancePositionSidePosition side.
close_position: Option<bool>Close all (for stop orders).
activation_price: Option<String>Activation price (for trailing stop).
callback_rate: Option<String>Callback rate (for trailing stop).
price_protect: Option<bool>Price protection.
realized_profit: StringRealized profit.
stp_mode: Option<String>Self-trade prevention mode.
price_match: Option<String>Price match mode.
good_till_date: Option<i64>Good till date for GTD orders.
Implementations§
Source§impl OrderUpdateData
impl OrderUpdateData
Sourcepub fn is_liquidation(&self) -> bool
pub fn is_liquidation(&self) -> bool
Returns true if this is a liquidation order.
Sourcepub fn is_settlement(&self) -> bool
pub fn is_settlement(&self) -> bool
Returns true if this is a settlement order.
Sourcepub fn is_exchange_generated(&self) -> bool
pub fn is_exchange_generated(&self) -> bool
Returns true if this is an exchange-generated order.
Trait Implementations§
Source§impl Clone for OrderUpdateData
impl Clone for OrderUpdateData
Source§fn clone(&self) -> OrderUpdateData
fn clone(&self) -> OrderUpdateData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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