pub struct BinanceFuturesOrder {Show 27 fields
pub symbol: Ustr,
pub order_id: i64,
pub client_order_id: String,
pub orig_qty: String,
pub executed_qty: String,
pub cum_quote: String,
pub price: String,
pub avg_price: Option<String>,
pub stop_price: Option<String>,
pub status: BinanceOrderStatus,
pub time_in_force: BinanceTimeInForce,
pub order_type: BinanceFuturesOrderType,
pub orig_type: Option<BinanceFuturesOrderType>,
pub side: BinanceSide,
pub position_side: Option<BinancePositionSide>,
pub reduce_only: Option<bool>,
pub close_position: Option<bool>,
pub activate_price: Option<String>,
pub price_rate: Option<String>,
pub working_type: Option<BinanceWorkingType>,
pub price_protect: Option<bool>,
pub is_isolated: Option<bool>,
pub good_till_date: Option<i64>,
pub price_match: Option<BinancePriceMatch>,
pub self_trade_prevention_mode: Option<BinanceSelfTradePreventionMode>,
pub update_time: Option<i64>,
pub working_type_id: Option<i64>,
}Expand description
Futures order information returned by GET /fapi/v1/order or GET /fapi/v1/openOrders.
§References
Fields§
§symbol: UstrSymbol name.
order_id: i64Order ID.
client_order_id: StringClient order ID.
orig_qty: StringOriginal order quantity.
executed_qty: StringExecuted quantity.
cum_quote: StringCumulative quote asset transacted.
price: StringOriginal limit price.
avg_price: Option<String>Average execution price.
stop_price: Option<String>Stop price.
status: BinanceOrderStatusOrder status.
time_in_force: BinanceTimeInForceTime in force.
order_type: BinanceFuturesOrderTypeOrder type.
orig_type: Option<BinanceFuturesOrderType>Original order type.
side: BinanceSideOrder side (BUY/SELL).
position_side: Option<BinancePositionSide>Position side (BOTH/LONG/SHORT).
reduce_only: Option<bool>Reduce-only flag.
close_position: Option<bool>Close position flag (for stop orders).
activate_price: Option<String>Trailing delta activation price.
price_rate: Option<String>Trailing callback rate.
working_type: Option<BinanceWorkingType>Working type (CONTRACT_PRICE or MARK_PRICE).
price_protect: Option<bool>Whether price protection is enabled.
is_isolated: Option<bool>Whether order uses isolated margin.
good_till_date: Option<i64>Good till date (for GTD orders).
price_match: Option<BinancePriceMatch>Price match mode (futures only).
self_trade_prevention_mode: Option<BinanceSelfTradePreventionMode>Self-trade prevention mode.
update_time: Option<i64>Last update time.
working_type_id: Option<i64>Working order ID for tracking.
Trait Implementations§
Source§impl Clone for BinanceFuturesOrder
impl Clone for BinanceFuturesOrder
Source§fn clone(&self) -> BinanceFuturesOrder
fn clone(&self) -> BinanceFuturesOrder
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinanceFuturesOrder
impl Debug for BinanceFuturesOrder
Source§impl<'de> Deserialize<'de> for BinanceFuturesOrder
impl<'de> Deserialize<'de> for BinanceFuturesOrder
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 BinanceFuturesOrder
impl RefUnwindSafe for BinanceFuturesOrder
impl Send for BinanceFuturesOrder
impl Sync for BinanceFuturesOrder
impl Unpin for BinanceFuturesOrder
impl UnwindSafe for BinanceFuturesOrder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§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>
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