pub struct TargetGTTBuilder { /* private fields */ }Expand description
Target GTT builder
Implementations§
Source§impl TargetGTTBuilder
impl TargetGTTBuilder
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 (usually SELL for long positions, BUY for short positions)
Sourcepub fn target_price(self, price: f64) -> Self
pub fn target_price(self, price: f64) -> Self
Set target price
Sourcepub fn current_price(self, price: f64) -> Self
pub fn current_price(self, price: f64) -> Self
Set current market price
Sourcepub fn build(self) -> Result<GTTCreateParams, String>
pub fn build(self) -> Result<GTTCreateParams, String>
Build target GTT
Trait Implementations§
Source§impl Clone for TargetGTTBuilder
impl Clone for TargetGTTBuilder
Source§fn clone(&self) -> TargetGTTBuilder
fn clone(&self) -> TargetGTTBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetGTTBuilder
impl Debug for TargetGTTBuilder
Auto Trait Implementations§
impl Freeze for TargetGTTBuilder
impl RefUnwindSafe for TargetGTTBuilder
impl Send for TargetGTTBuilder
impl Sync for TargetGTTBuilder
impl Unpin for TargetGTTBuilder
impl UnwindSafe for TargetGTTBuilder
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