pub struct BracketOrderBuilder { /* private fields */ }
Expand description
Builder for bracket order parameters
Implementations§
Source§impl BracketOrderBuilder
impl BracketOrderBuilder
Sourcepub fn trading_symbol<S: Into<String>>(self, symbol: S) -> Self
pub fn trading_symbol<S: Into<String>>(self, symbol: S) -> Self
Set trading symbol
Sourcepub fn transaction_type(self, transaction_type: TransactionType) -> Self
pub fn transaction_type(self, transaction_type: TransactionType) -> Self
Set transaction type
Sourcepub fn trailing_stoploss(self, trailing_stoploss: f64) -> Self
pub fn trailing_stoploss(self, trailing_stoploss: f64) -> Self
Set trailing stoploss
Sourcepub fn build(self) -> Result<BracketOrderParams, String>
pub fn build(self) -> Result<BracketOrderParams, String>
Build the bracket order parameters
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BracketOrderBuilder
impl RefUnwindSafe for BracketOrderBuilder
impl Send for BracketOrderBuilder
impl Sync for BracketOrderBuilder
impl Unpin for BracketOrderBuilder
impl UnwindSafe for BracketOrderBuilder
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