個人成交
訂閱個人成交的推送
提示
- 單筆訂單可能有多次成交
- 僅USDT永續交易對推送資金費用類型的成交
Topic:
user.execution.unifiedAccount
響應參數
| 參數 | 類型 | 說明 |
|---|---|---|
| id | string | 消息id |
| topic | string | Topic名 |
| type | string | 消息類型. snapshot |
| ts | number | 消息數據創建時間 |
| data | Object | |
| > version | integer | 版本號 |
| > result | array | Object |
| >> symbol | string | 合約名稱 |
| >> orderId | string | 訂單ID |
| >> side | string | 方向. Buy,Sell |
| >> orderLinkId | string | 用戶自定義訂單ID |
| >> orderPrice | string | 訂單價格 |
| >> orderQty | string | 訂單數量 |
| >> orderType | string | 訂單類型. 市價單:Market,限價單:Limit |
| >> execId | string | 成交ID |
| >> execPrice | string | 成交價格 |
| >> execQty | string | 成交數量 |
| >> execValue | string | 成交價值 |
| >> feeRate | string | 手續費率 |
| >> execFee | string | 交易手續費 |
| >> execTime | string | 交易時間戳 (毫秒) |
| >> execType | string | 成交類型. TRADE, ADLTRADE, FUNDING, BUSTTRADE, SETTLE |
| >> lastLiquidityInd | string | 流動性類型. TAKER: 吃單,MAKER: 掛單 |
| >> leavesQty | string | 剩餘委託未成交數量 |
| >> stopOrderType | string | 条件单的订单类型。如果该订单不是条件单,则不会返回任何类型 |
| >> blockTradeId | string | 大宗交易的订单 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"
}