pub struct AlgoOrderUpdateData {Show 25 fields
pub client_algo_id: String,
pub algo_id: i64,
pub algo_type: BinanceAlgoType,
pub order_type: BinanceFuturesOrderType,
pub symbol: Ustr,
pub side: BinanceSide,
pub position_side: BinancePositionSide,
pub time_in_force: BinanceTimeInForce,
pub quantity: String,
pub algo_status: BinanceAlgoStatus,
pub trigger_price: String,
pub price: String,
pub working_type: BinanceWorkingType,
pub price_match: Option<String>,
pub close_position: Option<bool>,
pub price_protect: Option<bool>,
pub reduce_only: Option<bool>,
pub trigger_time: Option<i64>,
pub good_till_date: Option<i64>,
pub actual_order_id: Option<String>,
pub avg_price: Option<String>,
pub executed_qty: Option<String>,
pub actual_order_type: Option<String>,
pub callback_rate: Option<String>,
pub stp_mode: Option<String>,
}Expand description
Algo order update data payload.
Fields§
§client_algo_id: StringClient algo order ID.
algo_id: i64Algo order ID.
algo_type: BinanceAlgoTypeAlgo type (currently only Conditional).
order_type: BinanceFuturesOrderTypeOrder type (STOP_MARKET, STOP, TAKE_PROFIT, TAKE_PROFIT_MARKET, TRAILING_STOP_MARKET).
symbol: UstrSymbol.
side: BinanceSideOrder side.
position_side: BinancePositionSidePosition side.
time_in_force: BinanceTimeInForceTime in force.
quantity: StringOrder quantity.
algo_status: BinanceAlgoStatusAlgo order status (NEW, TRIGGERING, TRIGGERED, FINISHED, CANCELED, EXPIRED, REJECTED).
trigger_price: StringTrigger price.
price: StringLimit price.
working_type: BinanceWorkingTypeWorking type for trigger price calculation.
price_match: Option<String>Price match mode.
close_position: Option<bool>Close position flag.
price_protect: Option<bool>Price protection flag.
reduce_only: Option<bool>Reduce-only flag.
trigger_time: Option<i64>Trigger time in milliseconds.
good_till_date: Option<i64>Good till date in milliseconds.
actual_order_id: Option<String>Order ID in matching engine (populated when triggered).
avg_price: Option<String>Average fill price in matching engine (populated when triggered).
executed_qty: Option<String>Executed quantity in matching engine (populated when triggered).
actual_order_type: Option<String>Actual order type in matching engine (populated when triggered).
callback_rate: Option<String>Callback rate for trailing stop (0.1 to 10, where 1 = 1%).
stp_mode: Option<String>Self-trade prevention mode.
Trait Implementations§
Source§impl Clone for AlgoOrderUpdateData
impl Clone for AlgoOrderUpdateData
Source§fn clone(&self) -> AlgoOrderUpdateData
fn clone(&self) -> AlgoOrderUpdateData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AlgoOrderUpdateData
impl Debug for AlgoOrderUpdateData
Source§impl<'de> Deserialize<'de> for AlgoOrderUpdateData
impl<'de> Deserialize<'de> for AlgoOrderUpdateData
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 AlgoOrderUpdateData
impl RefUnwindSafe for AlgoOrderUpdateData
impl Send for AlgoOrderUpdateData
impl Sync for AlgoOrderUpdateData
impl Unpin for AlgoOrderUpdateData
impl UnsafeUnpin for AlgoOrderUpdateData
impl UnwindSafe for AlgoOrderUpdateData
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