pub struct KrakenFuturesSendOrderParamsBuilder { /* private fields */ }Expand description
Builder for KrakenFuturesSendOrderParams.
Implementations§
Source§impl KrakenFuturesSendOrderParamsBuilder
impl KrakenFuturesSendOrderParamsBuilder
Sourcepub fn symbol<VALUE: Into<Ustr>>(&mut self, value: VALUE) -> &mut Self
pub fn symbol<VALUE: Into<Ustr>>(&mut self, value: VALUE) -> &mut Self
The symbol of the futures contract (e.g., “PI_XBTUSD”).
Sourcepub fn side<VALUE: Into<KrakenOrderSide>>(&mut self, value: VALUE) -> &mut Self
pub fn side<VALUE: Into<KrakenOrderSide>>(&mut self, value: VALUE) -> &mut Self
The order side: “buy” or “sell”.
Sourcepub fn order_type<VALUE: Into<KrakenFuturesOrderType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn order_type<VALUE: Into<KrakenFuturesOrderType>>( &mut self, value: VALUE, ) -> &mut Self
The order type: lmt, ioc, post, mkt, stp, take_profit, stop_loss.
Sourcepub fn size<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn size<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The order size in contracts.
Sourcepub fn cli_ord_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn cli_ord_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Optional client order ID for tracking.
Sourcepub fn limit_price<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn limit_price<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Limit price (required for limit orders).
Sourcepub fn stop_price<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn stop_price<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Stop/trigger price (required for stop orders).
Sourcepub fn reduce_only<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn reduce_only<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If true, the order will only reduce an existing position.
Sourcepub fn trigger_signal<VALUE: Into<KrakenTriggerSignal>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn trigger_signal<VALUE: Into<KrakenTriggerSignal>>( &mut self, value: VALUE, ) -> &mut Self
Trigger signal for stop orders: last, mark, or index.
Sourcepub fn trailing_stop_deviation_unit<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn trailing_stop_deviation_unit<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Trailing stop offset value.
Sourcepub fn trailing_stop_max_deviation<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn trailing_stop_max_deviation<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Trailing stop max deviation.
Sourcepub fn broker<VALUE: Into<Ustr>>(&mut self, value: VALUE) -> &mut Self
pub fn broker<VALUE: Into<Ustr>>(&mut self, value: VALUE) -> &mut Self
Partner/broker attribution ID.
Sourcepub fn build(
&self,
) -> Result<KrakenFuturesSendOrderParams, KrakenFuturesSendOrderParamsBuilderError>
pub fn build( &self, ) -> Result<KrakenFuturesSendOrderParams, KrakenFuturesSendOrderParamsBuilderError>
Trait Implementations§
Source§impl Clone for KrakenFuturesSendOrderParamsBuilder
impl Clone for KrakenFuturesSendOrderParamsBuilder
Source§fn clone(&self) -> KrakenFuturesSendOrderParamsBuilder
fn clone(&self) -> KrakenFuturesSendOrderParamsBuilder
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KrakenFuturesSendOrderParamsBuilder
impl RefUnwindSafe for KrakenFuturesSendOrderParamsBuilder
impl Send for KrakenFuturesSendOrderParamsBuilder
impl Sync for KrakenFuturesSendOrderParamsBuilder
impl Unpin for KrakenFuturesSendOrderParamsBuilder
impl UnwindSafe for KrakenFuturesSendOrderParamsBuilder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬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