跳至主要内容

個人成交

訂閱個人成交的推送

提示
  • 單筆訂單可能有多次成交
  • 僅USDT永續交易對推送資金費用類型的成交

Topic:
user.execution.unifiedAccount

響應參數

參數類型說明
idstring消息id
topicstringTopic名
typestring消息類型. snapshot
tsnumber消息數據創建時間
dataObject
> versioninteger版本號
> resultarrayObject
>> symbolstring合約名稱
>> orderIdstring訂單ID
>> sidestring方向. Buy,Sell
>> orderLinkIdstring用戶自定義訂單ID
>> orderPricestring訂單價格
>> orderQtystring訂單數量
>> orderTypestring訂單類型. 市價單:Market,限價單:Limit
>> execIdstring成交ID
>> execPricestring成交價格
>> execQtystring成交數量
>> execValuestring成交價值
>> feeRatestring手續費率
>> execFeestring交易手續費
>> execTimestring交易時間戳 (毫秒)
>> execTypestring成交類型. TRADE, ADLTRADE, FUNDING, BUSTTRADE, SETTLE
>> lastLiquidityIndstring流動性類型. TAKER: 吃單,MAKER: 掛單
>> leavesQtystring剩餘委託未成交數量
>> stopOrderTypestring条件单的订单类型。如果该订单不是条件单,则不会返回任何类型
>> blockTradeIdstring大宗交易的订单 ID ,使用 paradigm 进行大宗交易时生成的 ID

推送示例

{
"id": "331355731ff43340-3504-4643-a953-87f275de985e",
"topic": "user.execution.unifiedAccount",
"ts": 1672833057231,
"data": {
"result": [
{
"symbol": "ETHUSDT",
"execFee": "0.0075063",
"execId": "91704d47-4c11-5577-9be9-1beb35ae989d",
"execPrice": "1251.05",
"execQty": "0.01",
"execType": "TRADE",
"execValue": "12.5105",
"feeRate": "0.0006",
"lastLiquidityInd": "TAKER",
"leavesQty": "0",
"orderId": "9bb96006-711a-4235-9bc5-080302b4285c",
"orderLinkId": "",
"orderPrice": "1188.45",
"orderQty": "0.01",
"orderType": "Market",
"stopOrderType": "",
"side": "Sell",
"execTime": 1672833057221,
"blockTradeId": ""
}
],
"version": 3120492
},
"type": "snapshot"
}