私有訂單變更事件
Topic: /spotMarket/tradeOrders
- 推送頻率:
實時推送
該topic將推送所有有關您的訂單的變更事件。
訂單狀態
"match": 訂單爲taker時與買賣盤中訂單成交,此時該taker訂單狀態爲match;
"open": 訂單存在於買賣盤中;
"done": 訂單完成;
消息類型
open
{
"type":"message",
"topic":"/spotMarket/tradeOrders",
"subject":"orderChange",
"channelType":"private",
"data":{
"symbol":"KCS-USDT",
"orderType":"limit",
"side":"buy",
"orderId":"5efab07953bdea00089965d2",
"type":"open",
"orderTime":1670329987026,
"size":"0.1",
"filledSize":"0",
"price":"0.937",
"clientOid":"1593487481000906",
"remainSize":"0.1",
"status":"open",
"ts":1670329987311000000
}
}
訂單進入買賣盤時發出的消息。
match
{
"type":"message",
"topic":"/spotMarket/tradeOrders",
"subject":"orderChange",
"channelType":"private",
"data":{
"symbol":"KCS-USDT",
"orderType":"limit",
"side":"sell",
"orderId":"5efab07953bdea00089965fa",
"liquidity":"taker",
"type":"match",
"feeType":"takerFee", //費用類型,當type=match才包含此字段,取值列表:"takerFee", "makerFee"
"orderTime":1670329987026,
"size":"0.1",
"filledSize":"0.1",
"price":"0.938",
"matchPrice":"0.96738",
"matchSize":"0.1",
"tradeId":"5efab07a4ee4c7000a82d6d9",
"clientOid":"1593487481000313",
"remainSize":"0",
"status":"match",
"ts":1670329987311000000
}
}
訂單成交時發出的消息
filled
{
"type":"message",
"topic":"/spotMarket/tradeOrders",
"subject":"orderChange",
"channelType":"private",
"data":{
"symbol":"KCS-USDT",
"orderType":"limit",
"side":"sell",
"orderId":"5efab07953bdea00089965fa",
"type":"filled",
"orderTime":1670329987026,
"size":"0.1",
"filledSize":"0.1",
"price":"0.938",
"clientOid":"1593487481000313",
"remainSize":"0",
"status":"done",
"ts":1670329987311000000
}
}
訂單因成交後狀態變爲DONE時發出的消息
canceled
{
"type":"message",
"topic":"/spotMarket/tradeOrders",
"subject":"orderChange",
"channelType":"private",
"data":{
"symbol":"KCS-USDT",
"orderType":"limit",
"side":"buy",
"orderId":"5efab07953bdea00089965d2",
"type":"canceled",
"orderTime":1670329987026,
"size":"0.1",
"filledSize":"0",
"price":"0.937",
"clientOid":"1593487481000906",
"remainSize":"0",
"status":"done",
"ts":1670329987311000000
}
}
訂單因被取消後狀態變爲DONE時發出的消息
update
{
"type":"message",
"topic":"/spotMarket/tradeOrders",
"subject":"orderChange",
"channelType":"private",
"data":{
"symbol":"KCS-USDT",
"orderType":"limit",
"side":"buy",
"orderId":"5efab13f53bdea00089971df",
"type":"update",
"oldSize":"0.1",
"orderTime":1670329987026,
"size":"0.06",
"filledSize":"0",
"price":"0.937",
"clientOid":"1593487679000249",
"remainSize":"0.06",
"status":"open",
"ts":1670329987311000000
}
}
訂單因被修改發出的消息