pub struct TradingStopParams {
pub category: Category,
pub symbol: String,
pub take_profit: Option<String>,
pub stop_loss: Option<String>,
pub trailing_stop: Option<String>,
pub tp_trigger_by: Option<TriggerBy>,
pub sl_trigger_by: Option<TriggerBy>,
pub position_idx: Option<i32>,
}Expand description
Trading stop request.
Fields§
§category: CategoryCategory
symbol: StringSymbol
take_profit: Option<String>Take profit price
stop_loss: Option<String>Stop loss price
trailing_stop: Option<String>Trailing stop
tp_trigger_by: Option<TriggerBy>Take profit trigger
sl_trigger_by: Option<TriggerBy>Stop loss trigger
position_idx: Option<i32>Position index
Trait Implementations§
Source§impl Clone for TradingStopParams
impl Clone for TradingStopParams
Source§fn clone(&self) -> TradingStopParams
fn clone(&self) -> TradingStopParams
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 TradingStopParams
impl Debug for TradingStopParams
Auto Trait Implementations§
impl Freeze for TradingStopParams
impl RefUnwindSafe for TradingStopParams
impl Send for TradingStopParams
impl Sync for TradingStopParams
impl Unpin for TradingStopParams
impl UnsafeUnpin for TradingStopParams
impl UnwindSafe for TradingStopParams
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