pub struct KrakenSpotAddOrderParamsBuilder { /* private fields */ }Expand description
Builder for KrakenSpotAddOrderParams.
Implementations§
Source§impl KrakenSpotAddOrderParamsBuilder
impl KrakenSpotAddOrderParamsBuilder
Sourcepub fn pair<VALUE: Into<Ustr>>(&mut self, value: VALUE) -> &mut Self
pub fn pair<VALUE: Into<Ustr>>(&mut self, value: VALUE) -> &mut Self
Asset pair (e.g., “XXBTZUSD”).
Sourcepub fn side<VALUE: Into<KrakenOrderSide>>(&mut self, value: VALUE) -> &mut Self
pub fn side<VALUE: Into<KrakenOrderSide>>(&mut self, value: VALUE) -> &mut Self
Order side: “buy” or “sell”.
Sourcepub fn order_type<VALUE: Into<KrakenOrderType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn order_type<VALUE: Into<KrakenOrderType>>( &mut self, value: VALUE, ) -> &mut Self
Order type: market, limit, stop-loss, etc.
Sourcepub fn volume<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn volume<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Order quantity in base currency.
Sourcepub fn price<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn price<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Limit price (required for limit orders).
Sourcepub fn price2<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn price2<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Secondary price for stop-loss-limit and take-profit-limit.
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
Client order ID (must be UUID format).
Sourcepub fn oflags<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn oflags<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Order flags (comma-separated: post, fcib, fciq, nompp, viqc).
Sourcepub fn timeinforce<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn timeinforce<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Time in force: GTC, IOC, GTD.
Sourcepub fn expiretm<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn expiretm<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Expiration time for GTD orders (Unix timestamp or +<seconds>).
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<KrakenSpotAddOrderParams, KrakenSpotAddOrderParamsBuilderError>
pub fn build( &self, ) -> Result<KrakenSpotAddOrderParams, KrakenSpotAddOrderParamsBuilderError>
Trait Implementations§
Source§impl Clone for KrakenSpotAddOrderParamsBuilder
impl Clone for KrakenSpotAddOrderParamsBuilder
Source§fn clone(&self) -> KrakenSpotAddOrderParamsBuilder
fn clone(&self) -> KrakenSpotAddOrderParamsBuilder
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 KrakenSpotAddOrderParamsBuilder
impl RefUnwindSafe for KrakenSpotAddOrderParamsBuilder
impl Send for KrakenSpotAddOrderParamsBuilder
impl Sync for KrakenSpotAddOrderParamsBuilder
impl Unpin for KrakenSpotAddOrderParamsBuilder
impl UnwindSafe for KrakenSpotAddOrderParamsBuilder
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