pub struct BinanceNewAlgoOrderParamsBuilder { /* private fields */ }Expand description
Builder for BinanceNewAlgoOrderParams.
Implementations§
Source§impl BinanceNewAlgoOrderParamsBuilder
impl BinanceNewAlgoOrderParamsBuilder
Sourcepub fn symbol<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn symbol<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Trading symbol (required).
Sourcepub fn side<VALUE: Into<BinanceSide>>(&mut self, value: VALUE) -> &mut Self
pub fn side<VALUE: Into<BinanceSide>>(&mut self, value: VALUE) -> &mut Self
Order side (required).
Sourcepub fn order_type<VALUE: Into<BinanceFuturesOrderType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn order_type<VALUE: Into<BinanceFuturesOrderType>>( &mut self, value: VALUE, ) -> &mut Self
Order type (required): STOP_MARKET, STOP, TAKE_PROFIT, TAKE_PROFIT_MARKET, TRAILING_STOP_MARKET.
Sourcepub fn algo_type<VALUE: Into<BinanceAlgoType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn algo_type<VALUE: Into<BinanceAlgoType>>( &mut self, value: VALUE, ) -> &mut Self
Algo type (required). Currently only Conditional is supported.
Sourcepub fn position_side<VALUE: Into<BinancePositionSide>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn position_side<VALUE: Into<BinancePositionSide>>( &mut self, value: VALUE, ) -> &mut Self
Position side (required for hedge mode).
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 (for STOP/TAKE_PROFIT limit orders).
Sourcepub fn trigger_price<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn trigger_price<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Trigger price for conditional order (required).
Sourcepub fn time_in_force<VALUE: Into<BinanceTimeInForce>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn time_in_force<VALUE: Into<BinanceTimeInForce>>( &mut self, value: VALUE, ) -> &mut Self
Time in force.
Sourcepub fn working_type<VALUE: Into<BinanceWorkingType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn working_type<VALUE: Into<BinanceWorkingType>>( &mut self, value: VALUE, ) -> &mut Self
Working type for trigger price calculation (MARK_PRICE or CONTRACT_PRICE).
Sourcepub fn close_position<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn close_position<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Close all position flag.
Sourcepub fn price_protect<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn price_protect<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Price protection flag.
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
Reduce-only flag.
Sourcepub fn activation_price<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn activation_price<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Activation price for TRAILING_STOP_MARKET orders.
Sourcepub fn callback_rate<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn callback_rate<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Callback rate for TRAILING_STOP_MARKET orders (0.1 to 10, where 1 = 1%).
Sourcepub fn client_algo_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn client_algo_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Client algo order ID for idempotency.
Sourcepub fn good_till_date<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn good_till_date<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
Good till date for GTD orders (milliseconds).
Sourcepub fn recv_window<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn recv_window<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
Recv window override (ms).
Sourcepub fn build(
&self,
) -> Result<BinanceNewAlgoOrderParams, BinanceNewAlgoOrderParamsBuilderError>
pub fn build( &self, ) -> Result<BinanceNewAlgoOrderParams, BinanceNewAlgoOrderParamsBuilderError>
Trait Implementations§
Source§impl Clone for BinanceNewAlgoOrderParamsBuilder
impl Clone for BinanceNewAlgoOrderParamsBuilder
Source§fn clone(&self) -> BinanceNewAlgoOrderParamsBuilder
fn clone(&self) -> BinanceNewAlgoOrderParamsBuilder
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 BinanceNewAlgoOrderParamsBuilder
impl RefUnwindSafe for BinanceNewAlgoOrderParamsBuilder
impl Send for BinanceNewAlgoOrderParamsBuilder
impl Sync for BinanceNewAlgoOrderParamsBuilder
impl Unpin for BinanceNewAlgoOrderParamsBuilder
impl UnsafeUnpin for BinanceNewAlgoOrderParamsBuilder
impl UnwindSafe for BinanceNewAlgoOrderParamsBuilder
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