Fill Channel
Get the order fill (trade execution) data
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| op | string | Yes | Operation, subscribe unsubscribe |
| args | list | Yes | List of channels to request subscription |
| > instType | string | Yes | Product type: USDT-FUTURES |
| > channel | string | Yes | Channel name: fill |
| > instId | string | No | Product ID (optional) |
Request Example
{
"op": "subscribe",
"args": [
{
"instType": "USDT-FUTURES",
"channel": "fill",
"instId": "default"
}
]
}
Response Example
{
"event": "subscribe",
"arg": {
"instType": "USDT-FUTURES",
"channel": "fill",
"instId": "default"
}
}
Push Parameters
| Parameter | Type | Description |
|---|---|---|
| action | string | Push data action |
| arg | object | Channels with successful subscription |
| > instType | string | Product type |
| > channel | string | Channel name |
| > instId | string | Product ID |
| data | list | Fill data list |
| > symbol | string | Symbol |
| > tradeId | string | Trade ID |
| > orderId | string | Order ID |
| > tradeType | string | Trade type |
| > side | string | Trade side |
| > fee | string | Fee |
| > price | string | Filled price |
| > amount | string | Filled amount |
| > profit | string | Profit |
| > cTime | number | Create time |
| ts | number | Push timestamp |
Push Data
{
"action": "snapshot",
"arg": {
"instType": "USDT-FUTURES",
"channel": "fill",
"instId": "default"
},
"data": [
{
"symbol": "BTCUSDT",
"tradeId": "987654321",
"orderId": "123456789",
"tradeType": "LIMIT OPEN",
"side": "LONG",
"fee": "2.70",
"price": "27000.0",
"amount": "0.1",
"profit": "0",
"cTime": 1695716760565
}
],
"ts": 1695716761589
}