pub struct TpslLeg {
pub order_price: Decimal,
pub order_type: String,
pub price_condition: String,
pub time_in_force: String,
pub trigger_order_id: u64,
pub trigger_price: Decimal,
}Expand description
TpslLeg
JSON schema
{
"type": "object",
"required": [
"orderPrice",
"orderType",
"priceCondition",
"timeInForce",
"triggerOrderId",
"triggerPrice"
],
"properties": {
"orderPrice": {
"type": "string",
"format": "decimal"
},
"orderType": {
"description": "LIMIT (bullet's TPSL legs are always limit orders — see `time_in_force`\nfor the actual TIF behaviour)",
"type": "string"
},
"priceCondition": {
"description": "MARK_PRICE | ORACLE_PRICE | LAST_PRICE",
"type": "string"
},
"timeInForce": {
"description": "GTC | GTX (post-only) | FOK | IOC — matches the parent BinanceOrder's\n`timeInForce` shape",
"type": "string"
},
"triggerOrderId": {
"description": "the reserved TriggerOrderId this leg will activate as",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"triggerPrice": {
"type": "string",
"format": "decimal"
}
}
}Fields§
§order_price: Decimal§order_type: StringLIMIT (bullet’s TPSL legs are always limit orders — see time_in_force
for the actual TIF behaviour)
price_condition: StringMARK_PRICE | ORACLE_PRICE | LAST_PRICE
time_in_force: StringGTC | GTX (post-only) | FOK | IOC — matches the parent BinanceOrder’s
timeInForce shape
trigger_order_id: u64the reserved TriggerOrderId this leg will activate as
trigger_price: DecimalTrait Implementations§
Source§impl<'de> Deserialize<'de> for TpslLeg
impl<'de> Deserialize<'de> for TpslLeg
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 TpslLeg
impl RefUnwindSafe for TpslLeg
impl Send for TpslLeg
impl Sync for TpslLeg
impl Unpin for TpslLeg
impl UnsafeUnpin for TpslLeg
impl UnwindSafe for TpslLeg
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