child_order#
WS wss://api.pro.anboto.xyz/api/v2/ws
Channel for subscribing to child-order (slice) updates; subscribe with {"topic":"child_order","exchange":...,"method":"subscribe"}
Authenticate the connection with a listenKey — see WebSocket.
Subscribe message#
topic string requiredchild_orderexchange string requiredTrading exchange, case-insensitive
method enum requiredsubscribe / unsubscribeUpdate message fields#
orderStatus OrderStatusObjOrder Status
orderStatus.source stringComponent sending the status
orderStatus.orderId int64Anboto's order Id
orderStatus.clientOrderId stringClient referenced order Id
orderStatus.extId stringOrder Id from exchange
orderStatus.exchangeId integerExchange Id
orderStatus.status enumOrder Status —
PENDING_NEW, ACCEPTED, REJECTED, PARTIALLY_FILLED, FILLED, PENDING_CANCEL, CANCELLED, PENDING_PAUSE, … (12 values)orderStatus.createdAt integerUnix timestamp of this status change in milliseconds
orderStatus.filledQuantity integerfilled quantity of the order
orderStatus.leavesQuantity integerleave quantity of the order
orderStatus.side enumorder side —
BUY, SELLorderStatus.averagePrice decimalaverage price of the fills
orderStatus.message stringStatus message
orderStatus.errorCode stringError code
order objectChild order context: orderId, clientOrderId, parentOrderId, exchangeId, exchangeName, symbol, assetClass, side, quantity, limitPrice, tif, expiryTime, createdAt, orderType.
orderProgress numberExecution progress of the parent order, 0..1
Responses#
| code 0 | Acknowledgment of successful subscription |
| code ≠ 0 | Error response for failed subscription — see Errors |
Update child_order
{
"orderStatus": {
"source": "string",
"orderId": "string",
"clientOrderId": "string",
"extId": "string",
"exchangeId": 0,
"status": "PENDING_NEW",
"createdAt": 0,
"filledQuantity": 0,
"leavesQuantity": 0,
"side": "BUY",
"averagePrice": "string",
"message": "string",
"errorCode": "string"
},
"order": {},
"orderProgress": 0.0
}
Ack code 0
{
"code": 0,
"message": "string"
}