pub struct SubmitOrderOptions { /* private fields */ }
Expand description
Options for submit order request
Implementations§
source§impl SubmitOrderOptions
impl SubmitOrderOptions
sourcepub fn new(
symbol: impl Into<String>,
order_type: OrderType,
side: OrderSide,
submitted_quantity: i64,
time_in_force: TimeInForceType,
) -> Self
pub fn new( symbol: impl Into<String>, order_type: OrderType, side: OrderSide, submitted_quantity: i64, time_in_force: TimeInForceType, ) -> Self
Create a new SubmitOrderOptions
sourcepub fn submitted_price(self, submitted_price: Decimal) -> Self
pub fn submitted_price(self, submitted_price: Decimal) -> Self
Set the submitted price
sourcepub fn trigger_price(self, trigger_price: Decimal) -> Self
pub fn trigger_price(self, trigger_price: Decimal) -> Self
Set the trigger price
sourcepub fn limit_offset(self, limit_offset: Decimal) -> Self
pub fn limit_offset(self, limit_offset: Decimal) -> Self
Set the limit offset
sourcepub fn trailing_amount(self, trailing_amount: Decimal) -> Self
pub fn trailing_amount(self, trailing_amount: Decimal) -> Self
Set the trailing amount
sourcepub fn trailing_percent(self, trailing_percent: Decimal) -> Self
pub fn trailing_percent(self, trailing_percent: Decimal) -> Self
Set the trailing percent
sourcepub fn expire_date(self, expire_date: Date) -> Self
pub fn expire_date(self, expire_date: Date) -> Self
Set the expire date
sourcepub fn outside_rth(self, outside_rth: OutsideRTH) -> Self
pub fn outside_rth(self, outside_rth: OutsideRTH) -> Self
Enable or disable outside regular trading hours
Trait Implementations§
source§impl Clone for SubmitOrderOptions
impl Clone for SubmitOrderOptions
source§fn clone(&self) -> SubmitOrderOptions
fn clone(&self) -> SubmitOrderOptions
Returns a copy 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 SubmitOrderOptions
impl Debug for SubmitOrderOptions
Auto Trait Implementations§
impl Freeze for SubmitOrderOptions
impl RefUnwindSafe for SubmitOrderOptions
impl Send for SubmitOrderOptions
impl Sync for SubmitOrderOptions
impl Unpin for SubmitOrderOptions
impl UnwindSafe for SubmitOrderOptions
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬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