# Fill Channel

### Description

Trade Details channel

<div className="api-aligning">

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

### Request Parameters

| Parameter | Type | Required | Description            | 
| :---- | :---- |:---------|:-----------------------|
| op | String | Yes      | Operation, subscribe unsubscribe|
| arg | Object | Yes      |Subscribed channels    |
| &gt; channel | String | Yes      | Channel name: `fill`   |
| &gt; instType | String | Yes      | Product type<br/>`SPOT` |
| &gt; instId | String | No       | Product ID or default |

</div>

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

<div className="api-aligning">

```json title="Response Example"
{
    "event": "subscribe",
    "arg": {
        "instType": "SPOT",
        "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/>`SPOT` |
| &gt; instId | String | Product ID/default      |
| 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":"SPOT",
        "channel":"fill",
        "instId":"default"
    },
    "data":[
        {
            "orderId":"111",
            "tradeId":"111",
            "symbol":"BTCUSDT",
            "orderType":"limit",
            "side":"buy",
            "priceAvg":"42740.41",
            "size":"0.0006",
            "amount":"25.644246",
            "tradeScope":"marker",
            "feeDetail":[
                {
                    "feeCoin":"USDT",
                    "deduction":"no",
                    "totalDeductionFee":"0",
                    "totalFee":"0.01538655"
                }
            ],
            "cTime":"1703580202094",
            "uTime":"1703580202094"
        },
        {
            "orderId":"111",
            "tradeId":"222",
            "symbol":"BTCUSDT",
            "orderType":"limit",
            "side":"buy",
            "priceAvg":"42741.46",
            "size":"0.0006",
            "amount":"25.644876",            
            "tradeScope":"marker",
            "feeDetail":[
                {
                    "feeCoin":"USDT",
                    "deduction":"no",
                    "totalDeductionFee":"0",
                    "totalFee":"0.01538693"
                }
            ],
            "cTime":"1703580202094",
            "uTime":"1703580202094"
        }
    ],
    "ts":1703580202416
}
```

### Push Parameters

| Parameter                              | Type | Description                                                                  | 
|:---------------------------------------|:-------------------|:-----------------------------------------------------------------------------|
| action                                 | String             | Push action<br/>`snapshot`                                                   |
| arg                                    | Object             | Channels with successful subscription                                        |
| &gt; channel                           | String             | Channel name: fill                                                           |
| &gt; instType                          | String             | Product type<br/>`SPOT`                                                      |
| &gt; instId                            | String             | Product ID                                                                   |
| data                                   | List&lt;Object&gt; | Subscription data                                                            |
| &gt; orderId                           | String             | Order ID                                                                     |
| &gt; tradeId                           | String             | Trade ID                                                                     |
| &gt; symbol                            | String             | Symbol                                                                       |
| &gt; orderType                         | String     | Order type:<br/>`limit`<br/>`market`                                         |
| &gt; side                              | String             | Order direction<br/>`buy `<br/>`sell`                                        |
| &gt; priceAvg                          | String             | Total average filled price                                                   |
| &gt; size                              | String             | Filled size                                                                  |
| &gt; amount                            | String             | Accumulated filled size                                                      |
| &gt; tradeScope                        | String             | The liquidity direction of the latest transaction<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>
