pub struct BatchOrderItem {Show 18 fields
pub symbol: String,
pub side: String,
pub order_type: String,
pub time_in_force: Option<String>,
pub quantity: Option<String>,
pub price: Option<String>,
pub reduce_only: Option<bool>,
pub new_client_order_id: Option<String>,
pub stop_price: Option<String>,
pub position_side: Option<String>,
pub activation_price: Option<String>,
pub callback_rate: Option<String>,
pub working_type: Option<String>,
pub price_protect: Option<bool>,
pub close_position: Option<bool>,
pub good_till_date: Option<i64>,
pub price_match: Option<String>,
pub self_trade_prevention_mode: Option<String>,
}Expand description
Single order item for batch submit operations.
Fields§
§symbol: StringTrading symbol.
side: StringOrder side.
order_type: StringOrder type.
time_in_force: Option<String>Time in force.
quantity: Option<String>Order quantity.
price: Option<String>Limit price.
reduce_only: Option<bool>Reduce-only flag.
new_client_order_id: Option<String>Client order ID.
stop_price: Option<String>Stop price for stop orders.
position_side: Option<String>Position side.
activation_price: Option<String>Activation price for trailing stop orders.
callback_rate: Option<String>Callback rate for trailing stop orders (percentage).
working_type: Option<String>Working type (MARK_PRICE or CONTRACT_PRICE).
price_protect: Option<bool>Price protection flag.
close_position: Option<bool>Close position flag.
good_till_date: Option<i64>Good till date for GTD orders (ms).
price_match: Option<String>Price match mode.
self_trade_prevention_mode: Option<String>Self-trade prevention mode.
Trait Implementations§
Source§impl Clone for BatchOrderItem
impl Clone for BatchOrderItem
Source§fn clone(&self) -> BatchOrderItem
fn clone(&self) -> BatchOrderItem
Returns a duplicate of the value. Read more
1.0.0 · 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 BatchOrderItem
impl Debug for BatchOrderItem
Auto Trait Implementations§
impl Freeze for BatchOrderItem
impl RefUnwindSafe for BatchOrderItem
impl Send for BatchOrderItem
impl Sync for BatchOrderItem
impl Unpin for BatchOrderItem
impl UnsafeUnpin for BatchOrderItem
impl UnwindSafe for BatchOrderItem
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> 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>
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