# Fill Channel

Data will be pushed when order filled.

### Description

Trade details channel

Data will be pushed when order filled.

<div className="api-aligning">

```json title="Request Example"
{
    "op": "subscribe",
    "args": [
        {
            "instType": "USDT-FUTURES",
            "channel": "fill",
            "instId": "default"
        }
    ]
}
```

### Request Parameters

| Parameter | Type | Required | Description                                                                                                                                | 
| :---- | :---- |:---------|:-------------------------------------------------------------------------------------------------------------------------------------------|
| op | String | Yes      | Operation, subscribe unsubscribe                                                                                                           |
| args | List&lt;Object&gt; | Yes      | List of channels to request subscription                                                                                                   |
| &gt; channel | String | Yes      | Channel name: `fill`                                                                                                                       |
| &gt; instType | String | Yes      | Product type<br/>`USDT-FUTURES` USDT-M Futures<br/>`COIN-FUTURES` Coin-M Futures<br/>`USDC-FUTURES` USDC-M Futures                         |
| &gt; instId | String | No       | Product ID or default，<br/>delivery contract reference：https://www.bitget.com/api-doc/common/release-note#optimization-of-delivery-futures |

</div>

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

<div className="api-aligning">

```json title="Response Example"
{
    "event": "subscribe",
    "arg": {
        "instType": "USDT-FUTURES",
        "channel": "fill",
        "instId": "default"
    }
}
```

### Response Parameters

| Parameter | Type | Description                                                                                                                               | 
| :---- | :---- |:------------------------------------------------------------------------------------------------------------------------------------------|
| event | String | Event                                                                                                                                     |
| arg | Object | Subscribed channels                                                                                                                       |
| &gt; channel | String | Channel name: `fill`                                                                                                                      |
| &gt; instType | String | Product type<br/>`USDT-FUTURES` USDT-M Futures<br/>`COIN-FUTURES` Coin-M Futures<br/>`USDC-FUTURES` USDC-M Futures                        |
| &gt; instId | String | Product ID or default<br/>delivery contract reference：https://www.bitget.com/api-doc/common/release-note#optimization-of-delivery-futures |
| code | String | Error code                                                                                                                                |
| msg | String | Error message                                                                                                                             |

</div>

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

<div className="api-aligning">

```json title="Push Data"
{
    "action":"snapshot",
    "arg":{
        "instType":"USDT-FUTURES",
        "channel":"fill",
        "instId":"default"
    },
    "data":[
        {
            "orderId":"111",
            "clientOid":"111",
            "tradeId":"222",
            "symbol":"BTCUSDT",
            "side":"buy",
            "orderType":"market",
            "posMode":"one_way_mode",
            "price":"51000.5",
            "baseVolume":"0.01",
            "quoteVolume":"510.005",
            "profit":"0",
            "tradeSide":"open",
            "tradeScope":"taker",
            "feeDetail":[
                {
                    "feeCoin":"USDT",
                    "deduction":"no",
                    "totalDeductionFee":"0",
                    "totalFee":"-0.183717"
                }
            ],
            "cTime":"1703577336606",
            "uTime":"1703577336606"
        }
    ],
    "ts":1703577336700
}
```

### Push Parameters

| Parameter                          | Type               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | 
|:------------------------------------------|:-------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| action                                    | String             | `snapshot`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| arg                                       | Object             | Channels with successful subscription                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| &gt; channel                              | String             | Channel name: `fill`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| &gt; instType                             | String | Product type<br/>`USDT-FUTURES` USDT-M Futures<br/>`COIN-FUTURES` Coin-M Futures<br/>`USDC-FUTURES` USDC-M Futures                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| &gt; instId                               | String | Product ID or default<br/>delivery contract reference：https://www.bitget.com/api-doc/common/release-note#optimization-of-delivery-futures                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| data                                      | List&lt;Object&gt; | Subscription data                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |                                                                                                                                                                                                                                                                                            |
| &gt; orderId                              | String             | Order ID                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| &gt; clientOid                            | String             | Customize order ID                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| &gt; tradeId                              | String             | Trade ID                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| &gt; symbol                               | String             | Symbol Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| &gt; side                                 | String             | Trade direction<br/>`buy`: Buy <br/>`sell`: Sell<br/>Please note, for this channel, in hedge position mode, **Open Long** and **Close Short**, the "side" will be `buy`; **Close Long** and **Open Short**, the "side" will be `sell`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| &gt; orderType                            | String             | Order type<br/>`limit ` limit order<br/>`market` market order                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| &gt; posMode                              | String             | Hold Mode<br/>`one_way_mode `<br/>`hedge_mode`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| &gt; price                                | String             | Order price                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| &gt; baseVolume                           | String             | Amount of base coin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| &gt; quoteVolume                          | String             | Amount of denomination coin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| &gt; profit                               | String             | Realized PnL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| &gt; tradeSide                            | String             | Trade type<br/>`close`: Close (open and close mode)<br/>`open`: Open (open and close mode)<br/>`reduce_close_long`: Liquidate partial long positions for hedge position mode<br/>`reduce_close_short`：Liquidate partial short positions for hedge position mode<br/>`burst_close_long`：Liquidate long positions for hedge position mode<br/>`burst_close_short`：Liquidate short positions for hedge position mode<br/>`offset_close_long`：Liquidate partial long positions for netting for hedge position mode<br/>`offset_close_short`：Liquidate partial short positions for netting for hedge position mode<br/>`delivery_close_long`：Delivery long positions for hedge position mode<br/>`delivery_close_short`：Delivery short positions for hedge position mode<br/>`dte_sys_adl_close_long`：ADL close long position for hedge position mode<br/>`dte_sys_adl_close_short`：ADL close short position for hedge position mode<br/>`buy_single`：Buy, one way postion mode<br/>`sell_single`：Sell, one way postion mode<br/>`reduce_buy_single`：Liquidate partial positions, buy, one way position mode<br/>`reduce_sell_single`：Liquidate partial positions, sell, one way position mode<br/>`burst_buy_single`：Liquidate short positions, buy, one way postion mode<br/>`burst_sell_single`：Liquidate partial positions, sell, one way position mode<br/>`delivery_sell_single`：Delivery sell, one way position mode<br/>`delivery_buy_single`：Delivery buy, one way position mode<br/>`dte_sys_adl_buy_in_single_side_mode`：ADL close position, buy, one way position mode<br/>`dte_sys_adl_sell_in_single_side_mode`：ADL close position, sell, one way position mode |
| &gt; tradeScope                           | String             | The liquidity direction<br/>`taker ` <br/>`maker `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| &gt; feeDetail                            | List&lt;Object&gt;             | Transaction fee of the order                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| &nbsp;&nbsp;&gt;&gt; deduction            | String            | deduction<br/>`yes `<br/>`no`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| &nbsp;&nbsp;&gt;&gt; totalDeductionFee    | String             | Fee of deduction                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| &nbsp;&nbsp;&gt;&gt; totalFee             | String             | Fee of all                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| &nbsp;&nbsp;&gt;&gt; feeCoin              | String             | Currency of transaction fee                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| &gt; cTime                                | String             | Create Time，milliseconds format of Unix timestamp, e.g.1597026383085                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| &gt; uTime                                | String             | Update Time，milliseconds format of Unix timestamp, e.g.1597026383085                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |

</div>
