pub struct OcoOrder {
pub contingency_type: String,
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<OcoOrderOrderReportsItem>,
pub orders: Vec<OcoOrderOrdersItem>,
pub symbol: String,
pub transaction_time: i64,
}
Expand description
OcoOrder
JSON schema
{
"type": "object",
"required": [
"contingencyType",
"listClientOrderId",
"listOrderStatus",
"listStatusType",
"orderListId",
"orderReports",
"orders",
"symbol",
"transactionTime"
],
"properties": {
"contingencyType": {
"examples": [
"OCO"
],
"type": "string"
},
"listClientOrderId": {
"examples": [
"C3wyj4WVEktd7u9aVBRXcN"
],
"type": "string"
},
"listOrderStatus": {
"examples": [
"ALL_DONE"
],
"type": "string"
},
"listStatusType": {
"examples": [
"ALL_DONE"
],
"type": "string"
},
"orderListId": {
"examples": [
1929
],
"type": "integer",
"format": "int64"
},
"orderReports": {
"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": "BNBBTC",
"timeInForce": "GTC",
"transactTime": 1688005070874,
"type": "STOP_LOSS_LIMIT"
},
{
"clientOrderId": "unfWT8ig8i0uj6lPuYLez6",
"cummulativeQuoteQty": "0.00000000",
"executedQty": "0.00000000",
"orderId": 3,
"orderListId": 0,
"origClientOrderId": "TXOvglzXuaubXAaENpaRCB",
"origQty": "10.00000000",
"price": "3.00000000",
"selfTradePreventionMode": "NONE",
"side": "SELL",
"status": "CANCELED",
"symbol": "BNBBTC",
"timeInForce": "GTC",
"transactTime": 1688005070874,
"type": "LIMIT_MAKER"
}
]
],
"type": "array",
"items": {
"type": "object",
"required": [
"clientOrderId",
"cummulativeQuoteQty",
"executedQty",
"orderId",
"orderListId",
"origClientOrderId",
"origQty",
"price",
"selfTradePreventionMode",
"side",
"status",
"stopPrice",
"symbol",
"timeInForce",
"transactTime",
"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"
},
"selfTradePreventionMode": {
"type": "string"
},
"side": {
"type": "string"
},
"status": {
"type": "string"
},
"stopPrice": {
"type": "string"
},
"symbol": {
"type": "string"
},
"timeInForce": {
"type": "string"
},
"transactTime": {
"type": "integer",
"format": "int64"
},
"type": {
"type": "string"
}
}
}
},
"orders": {
"examples": [
[
{
"clientOrderId": "pO9ufTiFGg3nw2fOdgeOXa",
"orderId": 2,
"symbol": "BNBBTC"
},
{
"clientOrderId": "TXOvglzXuaubXAaENpaRCB",
"orderId": 3,
"symbol": "BNBBTC"
}
]
],
"type": "array",
"items": {
"type": "object",
"required": [
"clientOrderId",
"orderId",
"symbol"
],
"properties": {
"clientOrderId": {
"type": "string"
},
"orderId": {
"type": "integer",
"format": "int64"
},
"symbol": {
"type": "string"
}
}
}
},
"symbol": {
"examples": [
"BNBBTC"
],
"type": "string"
},
"transactionTime": {
"examples": [
1574040868128
],
"type": "integer",
"format": "int64"
}
}
}
Fields§
§contingency_type: String
§list_client_order_id: String
§list_order_status: String
§list_status_type: String
§order_list_id: i64
§order_reports: Vec<OcoOrderOrderReportsItem>
§orders: Vec<OcoOrderOrdersItem>
§symbol: String
§transaction_time: i64
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OcoOrder
impl<'de> Deserialize<'de> for OcoOrder
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<OcoOrder> for CancelOpenOrdersResponseItem
impl From<OcoOrder> for CancelOpenOrdersResponseItem
Auto Trait Implementations§
impl Freeze for OcoOrder
impl RefUnwindSafe for OcoOrder
impl Send for OcoOrder
impl Sync for OcoOrder
impl Unpin for OcoOrder
impl UnwindSafe for OcoOrder
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