pub struct BatchOrderItem {
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 new_client_order_id: Option<String>,
pub stop_price: Option<String>,
}Expand description
Single order in a batch order request (JSON format for batchOrders param).
Fields§
§symbol: StringTrading pair symbol.
side: StringOrder side (BUY or SELL).
order_type: StringOrder type.
time_in_force: Option<String>Time in force.
quantity: Option<String>Order quantity.
price: Option<String>Limit price.
new_client_order_id: Option<String>Client order ID.
stop_price: Option<String>Stop price for stop orders.
Implementations§
Source§impl BatchOrderItem
impl BatchOrderItem
Sourcepub fn from_params(params: &NewOrderParams) -> Self
pub fn from_params(params: &NewOrderParams) -> Self
Creates a batch order item from NewOrderParams.
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