pub struct ParentTpSlLeg {
pub expires_at: Option<String>,
pub limit_price: Option<String>,
pub order_type: Option<ParentTpSlLegOrderType>,
pub slippage_tolerance_bps: Option<i32>,
pub time_in_force: Option<ParentTpSlLegTimeInForce>,
pub trigger_price: Option<String>,
}Expand description
ParentTpSlLeg
JSON schema
{
"type": "object",
"properties": {
"expiresAt": {
"description": "Optional conditional order expiry timestamp (ISO 8601)",
"examples": [
"2026-06-01T00:00:00Z"
],
"type": [
"string",
"null"
]
},
"limitPrice": {
"description": "Limit price for LIMIT TP/SL children",
"examples": [
"64950"
],
"type": [
"string",
"null"
]
},
"orderType": {
"description": "Triggered order type: MARKET or LIMIT",
"type": [
"string",
"null"
],
"enum": [
"MARKET",
"LIMIT"
]
},
"slippageToleranceBps": {
"description": "MARKET only slippage tolerance in basis points",
"examples": [
1000
],
"type": [
"integer",
"null"
],
"format": "int32",
"maximum": 10000.0
},
"timeInForce": {
"description": "LIMIT only: GTC or IOC",
"type": [
"string",
"null"
],
"enum": [
"GTC",
"IOC"
]
},
"triggerPrice": {
"description": "Mark price that activates this TP/SL child",
"examples": [
"65000"
],
"type": [
"string",
"null"
]
}
}
}Fields§
§expires_at: Option<String>Optional conditional order expiry timestamp (ISO 8601)
limit_price: Option<String>Limit price for LIMIT TP/SL children
order_type: Option<ParentTpSlLegOrderType>Triggered order type: MARKET or LIMIT
slippage_tolerance_bps: Option<i32>MARKET only slippage tolerance in basis points
time_in_force: Option<ParentTpSlLegTimeInForce>LIMIT only: GTC or IOC
trigger_price: Option<String>Mark price that activates this TP/SL child
Trait Implementations§
Source§impl Clone for ParentTpSlLeg
impl Clone for ParentTpSlLeg
Source§fn clone(&self) -> ParentTpSlLeg
fn clone(&self) -> ParentTpSlLeg
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 Debug for ParentTpSlLeg
impl Debug for ParentTpSlLeg
Source§impl Default for ParentTpSlLeg
impl Default for ParentTpSlLeg
Source§impl<'de> Deserialize<'de> for ParentTpSlLeg
impl<'de> Deserialize<'de> for ParentTpSlLeg
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 ParentTpSlLeg
impl RefUnwindSafe for ParentTpSlLeg
impl Send for ParentTpSlLeg
impl Sync for ParentTpSlLeg
impl Unpin for ParentTpSlLeg
impl UnsafeUnpin for ParentTpSlLeg
impl UnwindSafe for ParentTpSlLeg
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