Struct bybit::model::TradingStopRequest
source · pub struct TradingStopRequest<'a> {Show 14 fields
pub category: Category,
pub symbol: Cow<'a, str>,
pub take_profit: Option<f64>,
pub stop_loss: Option<f64>,
pub tp_trigger_by: Option<Cow<'a, str>>,
pub sl_trigger_by: Option<Cow<'a, str>>,
pub tpsl_mode: Option<Cow<'a, str>>,
pub tp_order_type: Option<OrderType>,
pub sl_order_type: Option<OrderType>,
pub tp_size: Option<f64>,
pub sl_size: Option<f64>,
pub tp_limit_price: Option<f64>,
pub sl_limit_price: Option<f64>,
pub position_idx: i32,
}Fields§
§category: Category§symbol: Cow<'a, str>§take_profit: Option<f64>§stop_loss: Option<f64>§tp_trigger_by: Option<Cow<'a, str>>§sl_trigger_by: Option<Cow<'a, str>>§tpsl_mode: Option<Cow<'a, str>>§tp_order_type: Option<OrderType>§sl_order_type: Option<OrderType>§tp_size: Option<f64>§sl_size: Option<f64>§tp_limit_price: Option<f64>§sl_limit_price: Option<f64>§position_idx: i32Implementations§
source§impl<'a> TradingStopRequest<'a>
impl<'a> TradingStopRequest<'a>
pub fn new( category: Category, symbol: &'a str, take_profit: Option<f64>, stop_loss: Option<f64>, tp_trigger_by: Option<&'a str>, sl_trigger_by: Option<&'a str>, tpsl_mode: Option<&'a str>, tp_order_type: Option<OrderType>, sl_order_type: Option<OrderType>, tp_size: Option<f64>, sl_size: Option<f64>, tp_limit_price: Option<f64>, sl_limit_price: Option<f64>, position_idx: i32, ) -> Self
pub fn default() -> TradingStopRequest<'a>
Trait Implementations§
source§impl<'a> Clone for TradingStopRequest<'a>
impl<'a> Clone for TradingStopRequest<'a>
source§fn clone(&self) -> TradingStopRequest<'a>
fn clone(&self) -> TradingStopRequest<'a>
Returns a copy 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<'a> Default for TradingStopRequest<'a>
impl<'a> Default for TradingStopRequest<'a>
source§fn default() -> TradingStopRequest<'a>
fn default() -> TradingStopRequest<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for TradingStopRequest<'a>
impl<'a> RefUnwindSafe for TradingStopRequest<'a>
impl<'a> Send for TradingStopRequest<'a>
impl<'a> Sync for TradingStopRequest<'a>
impl<'a> Unpin for TradingStopRequest<'a>
impl<'a> UnwindSafe for TradingStopRequest<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)