pub struct SubmitMultiLegOrderOptions { /* private fields */ }Expand description
Options for submit multi-leg order request
Implementations§
Source§impl SubmitMultiLegOrderOptions
impl SubmitMultiLegOrderOptions
Sourcepub fn new(
side: OrderSide,
order_type: OrderType,
submitted_quantity: Decimal,
strategy: MultiLegStrategy,
legs: impl IntoIterator<Item = SubmitMultiLegOrderLeg>,
) -> Self
pub fn new( side: OrderSide, order_type: OrderType, submitted_quantity: Decimal, strategy: MultiLegStrategy, legs: impl IntoIterator<Item = SubmitMultiLegOrderLeg>, ) -> Self
Create a new SubmitMultiLegOrderOptions
Sourcepub fn submitted_price(self, submitted_price: Decimal) -> Self
pub fn submitted_price(self, submitted_price: Decimal) -> Self
Set the submitted price
Required for limit order types such as LO.
Sourcepub fn client_request_id(self, id: impl Into<String>) -> Self
pub fn client_request_id(self, id: impl Into<String>) -> Self
Set the client request ID for idempotency control. If not specified, idempotency control is skipped. The server caches this ID for 10 minutes; requests with the same ID within that period return the original response without creating a new order.
Trait Implementations§
Source§impl Clone for SubmitMultiLegOrderOptions
impl Clone for SubmitMultiLegOrderOptions
Source§fn clone(&self) -> SubmitMultiLegOrderOptions
fn clone(&self) -> SubmitMultiLegOrderOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubmitMultiLegOrderOptions
impl Debug for SubmitMultiLegOrderOptions
Auto Trait Implementations§
impl Freeze for SubmitMultiLegOrderOptions
impl RefUnwindSafe for SubmitMultiLegOrderOptions
impl Send for SubmitMultiLegOrderOptions
impl Sync for SubmitMultiLegOrderOptions
impl Unpin for SubmitMultiLegOrderOptions
impl UnsafeUnpin for SubmitMultiLegOrderOptions
impl UnwindSafe for SubmitMultiLegOrderOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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