止損單生命週期監聽事件
{
"userId": "5cd3f1a7b7ebc19ae9558591", // 不推薦使用, 後續版本將刪除
"topic": "/contractMarket/advancedOrders",
"subject": "stopOrder",
"data": {
"orderId": "5cdfc138b21023a909e5ad55", //訂單編號
"symbol": "XBTUSDM", //合約symbol
"type": "open", // 消息類型: open (止損下單成功), triggered (止損單觸發), cancel (止損單取消)
"orderType":"stop", // 訂單類型: stop
"side":"buy", // 訂單買賣方向
"size":"1000", //數量
"orderPrice":"9000", //訂單價格
"stop":"up", //止損類型 ("up" 或 "down")
"stopPrice":"9100", //止損單觸發價格
"stopPriceType":"TP", //止損單觸發價格類型
"triggerSuccess": true, //觸發成功標記, 只有triggered類型消息需要
"error": "error.createOrder.accountBalanceInsufficient", //錯誤碼, 觸發失敗時使用
"createdAt": 1558074652423 //創建時間
"ts":1558074652423004000, //創建時間戳納秒
"marginMode": "ISOLATED" // 新增保证金模式:ISOLATED-逐倉,CROSS-全倉
}
}
Topic:/contractMarket/advancedOrders