pub struct PutOrderParamsBuilder { /* private fields */ }
Expand description
Builder for PutOrderParams
.
Implementations§
Source§impl PutOrderParamsBuilder
impl PutOrderParamsBuilder
Sourcepub fn orig_cl_ord_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn orig_cl_ord_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Client Order ID. See POST /order.
Sourcepub fn cl_ord_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn cl_ord_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Optional new Client Order ID, requires origClOrdID
.
Sourcepub fn order_qty<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn order_qty<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
Optional order quantity in units of the instrument (i.e. contracts).
Sourcepub fn leaves_qty<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn leaves_qty<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
Optional leaves quantity in units of the instrument (i.e. contracts). Useful for amending partially filled orders.
Sourcepub fn price<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn price<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Optional limit price for Limit
, StopLimit
, and LimitIfTouched
orders.
Sourcepub fn stop_px<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn stop_px<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Optional trigger price for Stop
, StopLimit
, MarketIfTouched
, and LimitIfTouched
orders. Use a price below the current price for stop-sell orders and buy-if-touched orders.
Sourcepub fn peg_offset_value<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn peg_offset_value<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Optional trailing offset from the current price for Stop
, StopLimit
, MarketIfTouched
, and LimitIfTouched
orders; use a negative offset for stop-sell orders and buy-if-touched orders. Optional offset from the peg price for ‘Pegged’ orders.
Sourcepub fn text<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn text<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Optional amend annotation. e.g. ‘Adjust skew’.
Sourcepub fn build(&self) -> Result<PutOrderParams, PutOrderParamsBuilderError>
pub fn build(&self) -> Result<PutOrderParams, PutOrderParamsBuilderError>
Trait Implementations§
Source§impl Clone for PutOrderParamsBuilder
impl Clone for PutOrderParamsBuilder
Source§fn clone(&self) -> PutOrderParamsBuilder
fn clone(&self) -> PutOrderParamsBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for PutOrderParamsBuilder
impl RefUnwindSafe for PutOrderParamsBuilder
impl Send for PutOrderParamsBuilder
impl Sync for PutOrderParamsBuilder
impl Unpin for PutOrderParamsBuilder
impl UnwindSafe for PutOrderParamsBuilder
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