pub struct PatchTriggerV2OrdersPriceOrderIdRequest {
pub order_type: PatchTriggerV2OrdersPriceOrderIdRequestOrderType,
pub sl_price_usd: Option<f64>,
pub sl_slippage_bps: Option<f64>,
pub slippage_bps: Option<f64>,
pub tp_price_usd: Option<f64>,
pub tp_slippage_bps: Option<f64>,
pub trailing_bps: Option<f64>,
pub trigger_price_usd: Option<f64>,
}Fields§
§order_type: PatchTriggerV2OrdersPriceOrderIdRequestOrderType§sl_price_usd: Option<f64>§sl_slippage_bps: Option<f64>§slippage_bps: Option<f64>§tp_price_usd: Option<f64>§tp_slippage_bps: Option<f64>§trailing_bps: Option<f64>New trailing stop loss trail distance in basis points (50-9000), for an order that is already trailing. Constraint: minimum=50, maximum=9000
trigger_price_usd: Option<f64>New trigger price. Cannot be set on a trailing stop loss order.
Implementations§
Source§impl PatchTriggerV2OrdersPriceOrderIdRequest
impl PatchTriggerV2OrdersPriceOrderIdRequest
Sourcepub fn new(order_type: PatchTriggerV2OrdersPriceOrderIdRequestOrderType) -> Self
pub fn new(order_type: PatchTriggerV2OrdersPriceOrderIdRequestOrderType) -> Self
Construct this request with every required wire field.
Sourcepub fn builder(
order_type: PatchTriggerV2OrdersPriceOrderIdRequestOrderType,
) -> PatchTriggerV2OrdersPriceOrderIdRequestBuilder
pub fn builder( order_type: PatchTriggerV2OrdersPriceOrderIdRequestOrderType, ) -> PatchTriggerV2OrdersPriceOrderIdRequestBuilder
Start a dependency-free builder with every required wire field.
Trait Implementations§
Source§impl Clone for PatchTriggerV2OrdersPriceOrderIdRequest
impl Clone for PatchTriggerV2OrdersPriceOrderIdRequest
Source§fn clone(&self) -> PatchTriggerV2OrdersPriceOrderIdRequest
fn clone(&self) -> PatchTriggerV2OrdersPriceOrderIdRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for PatchTriggerV2OrdersPriceOrderIdRequest
impl<'de> Deserialize<'de> for PatchTriggerV2OrdersPriceOrderIdRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PatchTriggerV2OrdersPriceOrderIdRequest
impl RefUnwindSafe for PatchTriggerV2OrdersPriceOrderIdRequest
impl Send for PatchTriggerV2OrdersPriceOrderIdRequest
impl Sync for PatchTriggerV2OrdersPriceOrderIdRequest
impl Unpin for PatchTriggerV2OrdersPriceOrderIdRequest
impl UnsafeUnpin for PatchTriggerV2OrdersPriceOrderIdRequest
impl UnwindSafe for PatchTriggerV2OrdersPriceOrderIdRequest
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