# Fill Channel

### Description
Push real-time fill data.

Push rules:
1. No push on first-time subscription
2. Push when spot/leveraged/futures orders are filled

<div className="api-aligning">

```json title="Request Example"
{
    "op": "subscribe",
    "args": [
        {
            "instType": "UTA",
            "topic": "fill"
        }
    ]
}
```

### Request Parameters


| Parameters    |  Type         | Description                                    |
|:--------------|:-----------------------|:-----------------------------------------------|
| op            | String                 | Operation: <br/> `subscribe` /`unsubscribe`    |
| args          | List&lt;Object&gt;     | Subscribed channel                             |
| &gt; instType | String                 | Product type<br/>`UTA` Unified trading account |
| &gt; topic    | String                 | Topic <br/>`fill`                              |

</div>

<div className="api-br-10"></div>

<div className="api-aligning">

```json title="Response Example"
{
    "event": "subscribe",
    "arg": {
        "instType": "UTA",
        "topic": "fill"
    },
    "connId": "xxxxxxxxxx"
}
```
### Response Parameters

| Parameters    |  Type   | Description                                            | 
|:-----------------|:-----------------|:-------------------------------------------------------|
| event            | String           | Operation <br/>`subscribe` / `unsubscribe` / `error`   |
| arg              | Object           | Subscribed channel                                     |
| &gt; instType    | String           | Product type <br/>`UTA`                                |
| &gt; topic       | String           | Topic <br/>`fill`                               |
| code             | String           | Error code                                             |
| msg              | String           | Error message                                          |
| connId           | String           | Connection ID                                          |


</div>

<div className="api-br-10"></div>


<div className="api-aligning">

```json title="Push Data"
{
  "data": [
    {
      "symbol": "BTCUSDT",
      "orderType": "market",
      "updatedTime": "1736378720623",
      "side": "buy",
      "orderId": "1288888888888888888",
      "execPnl": "0",
      "feeDetail": [
        {
          "feeCoin": "USDT",
          "fee": "0.569958"
        }
      ],
      "execTime": "1736378720623",
      "tradeScope": "taker",
      "tradeSide": "open",
      "execId": "1288888888888888888",
      "execLinkId": "1288888888888888888",
      "execPrice": "94993",
      "holdSide": "long",
      "execValue": "949.93",
      "category": "usdt-futures",
      "execQty": "0.01",
      "clientOid": "1288888888888888889",
      "isRPI": "no"
    }
  ],
  "arg": {
    "instType": "UTA",
    "topic": "fill"
  },
  "action": "snapshot",
  "ts": 1733904123981
}
```



### Push Parameters

| Parameters         | Type               | Description                                                                                                                                                                  |
|:-------------------|:-------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| arg                | Object             | Subscribed channel                                                                                                                                                           |
| &gt; instType      | String             | product type <br/>`UTA` Unified trading account                                                                                                                              |
| &gt; topic         | String             | Topic <br/>`fill` fill                                                                                                                                                       |
| action             | String             | Action <br/>`snapshot` Full data                                                                                                           |
| data               | List&lt;Object&gt; | Subscribed data                                                                                                                                                              |
| &gt; category      | String             | Product type <br/> `spot` Spot trading <br/> `margin` Margin trading <br/> `usdt-futures` USDT futures <br/> `coin-futures` Coin-M futures <br/> `usdc-futures` USDC futures |
| &gt; orderId       | String             | Order ID                                                                                                                                                                     |
| &gt; clientOid     | String             | Client Order ID                                                                                                                                                              |
| &gt; execId        | String             | Fill ID                                                                                                                                                                      |
| &gt; execLinkId    | String             | Execution correlation ID                                                                                                                                                                      |
| &gt; symbol        | String             | Symbol name                                                                                                                                                                  |
| &gt; orderType     | String             | Order type <br/>`limit`/`market`                                                                                                                                             |
| &gt; side          | String             | Trade side<br/>`buy`/`sell`                                                                                                                                                  |
| &gt; holdSide      | String             | Position direction <br/>`long`: Long <br/>`short`: Short                                                                                                                     |
| &gt; tradeSide     | String             | Trade side <br/>`open`/`close`    <br/>Detailed enumerations can be obtained on the Enumeration page.                                                                              |
| &gt; execPrice     | String             | Fill price                                                                                                                                                                   |
| &gt; execQty       | String             | Fill quantity<br/>_The unit is base coin_                                                                                                                                    |
| &gt; execValue     | String             | Fill value<br/>_The unit is quote coin_                                                                                                                                      |
| &gt; execPnl       | String             | Execution profit and loss                                                                                                                                                    |
| &gt; tradeScope    | String             | Trade scope<br/>`taker`/`maker`                                                                                                                                              |
| &gt; feeDetail     | String             | Fee detail                                                                                                                                                                   |
| &gt;&gt; feeCoin   | String             | Fee coin                                                                                                                                                                     |
| &gt;&gt; fee       | String             | Total fee                                                                                                                                                                    |
| &gt; execTime      | String             | Execution timestamp <br/>A Unix timestamp in milliseconds. e.g.,`1622697148123`                                                                                                 |
| &gt; updatedTime   | String             | Updated timestamp<br/>A Unix timestamp in milliseconds. e.g.,`1622697148123`                                                                                                    |
| &gt; isRPI         | String             | Whether it is an RPI fill<br/>`yes` Yes<br/>`no` No                                                                                                                             |



</div>
