pub struct MarginOcoOrder {
pub contingency_type: String,
pub is_isolated: bool,
pub list_client_order_id: String,
pub list_order_status: String,
pub list_status_type: String,
pub order_list_id: i64,
pub order_reports: Vec<MarginOcoOrderOrderReportsItem>,
pub orders: Vec<MarginOcoOrderOrdersItem>,
pub symbol: String,
pub transaction_time: i64,
}
Expand description
MarginOcoOrder
JSON schema
{
"type": "object",
"required": [
"contingencyType",
"isIsolated",
"listClientOrderId",
"listOrderStatus",
"listStatusType",
"orderListId",
"orderReports",
"orders",
"symbol",
"transactionTime"
],
"properties": {
"contingencyType": {
"examples": [
"OCO"
],
"type": "string"
},
"isIsolated": {
"examples": [
false
],
"type": "boolean"
},
"listClientOrderId": {
"examples": [
"C3wyj4WVEktd7u9aVBRXcN"
],
"type": "string"
},
"listOrderStatus": {
"examples": [
"ALL_DONE"
],
"type": "string"
},
"listStatusType": {
"examples": [
"ALL_DONE"
],
"type": "string"
},
"orderListId": {
"examples": [
0
],
"type": "integer",
"format": "int64"
},
"orderReports": {
"type": "array",
"items": {
"examples": [
[
{
"clientOrderId": "unfWT8ig8i0uj6lPuYLez6",
"cummulativeQuoteQty": "0.00000000",
"executedQty": "0.00000000",
"orderId": 2,
"orderListId": 0,
"origClientOrderId": "pO9ufTiFGg3nw2fOdgeOXa",
"origQty": "10.00000000",
"price": "1.00000000",
"side": "SELL",
"status": "CANCELED",
"stopPrice": "1.00000000",
"symbol": "BNBUSDT",
"timeInForce": "GTC",
"type": "STOP_LOSS_LIMIT"
},
{
"clientOrderId": "unfWT8ig8i0uj6lPuYLez6",
"cummulativeQuoteQty": "0.00000000",
"executedQty": "0.00000000",
"orderId": 3,
"orderListId": 0,
"origClientOrderId": "TXOvglzXuaubXAaENpaRCB",
"origQty": "10.00000000",
"price": "3.00000000",
"side": "SELL",
"status": "CANCELED",
"symbol": "BNBUSDT",
"timeInForce": "GTC",
"type": "LIMIT_MAKER"
}
]
],
"type": "object",
"required": [
"clientOrderId",
"cummulativeQuoteQty",
"executedQty",
"orderId",
"orderListId",
"origClientOrderId",
"origQty",
"price",
"side",
"status",
"stopPrice",
"symbol",
"timeInForce",
"type"
],
"properties": {
"clientOrderId": {
"type": "string"
},
"cummulativeQuoteQty": {
"type": "string"
},
"executedQty": {
"type": "string"
},
"orderId": {
"type": "integer",
"format": "int64"
},
"orderListId": {
"type": "integer",
"format": "int64"
},
"origClientOrderId": {
"type": "string"
},
"origQty": {
"type": "string"
},
"price": {
"type": "string"
},
"side": {
"type": "string"
},
"status": {
"type": "string"
},
"stopPrice": {
"type": "string"
},
"symbol": {
"type": "string"
},
"timeInForce": {
"type": "string"
},
"type": {
"type": "string"
}
}
}
},
"orders": {
"type": "array",
"items": {
"examples": [
[
{
"clientOrderId": "pO9ufTiFGg3nw2fOdgeOXa",
"orderId": 2,
"symbol": "BNBUSDT"
},
{
"clientOrderId": "TXOvglzXuaubXAaENpaRCB",
"orderId": 3,
"symbol": "BNBUSDT"
}
]
],
"type": "object",
"required": [
"clientOrderId",
"orderId",
"symbol"
],
"properties": {
"clientOrderId": {
"type": "string"
},
"orderId": {
"type": "integer",
"format": "int64"
},
"symbol": {
"type": "string"
}
}
}
},
"symbol": {
"examples": [
"BNBUSDT"
],
"type": "string"
},
"transactionTime": {
"examples": [
1574040868128
],
"type": "integer",
"format": "int64"
}
}
}
Fields§
§contingency_type: String
§is_isolated: bool
§list_client_order_id: String
§list_order_status: String
§list_status_type: String
§order_list_id: i64
§order_reports: Vec<MarginOcoOrderOrderReportsItem>
§orders: Vec<MarginOcoOrderOrdersItem>
§symbol: String
§transaction_time: i64
Trait Implementations§
Source§impl Clone for MarginOcoOrder
impl Clone for MarginOcoOrder
Source§fn clone(&self) -> MarginOcoOrder
fn clone(&self) -> MarginOcoOrder
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 MarginOcoOrder
impl Debug for MarginOcoOrder
Source§impl<'de> Deserialize<'de> for MarginOcoOrder
impl<'de> Deserialize<'de> for MarginOcoOrder
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
Source§impl From<&MarginOcoOrder> for MarginOcoOrder
impl From<&MarginOcoOrder> for MarginOcoOrder
Source§fn from(value: &MarginOcoOrder) -> Self
fn from(value: &MarginOcoOrder) -> Self
Converts to this type from the input type.
Source§impl From<MarginOcoOrder> for MarginCancelOrdersResponseItem
impl From<MarginOcoOrder> for MarginCancelOrdersResponseItem
Source§fn from(value: MarginOcoOrder) -> Self
fn from(value: MarginOcoOrder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MarginOcoOrder
impl RefUnwindSafe for MarginOcoOrder
impl Send for MarginOcoOrder
impl Sync for MarginOcoOrder
impl Unpin for MarginOcoOrder
impl UnwindSafe for MarginOcoOrder
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