# 逐仓杠杆订单频道

### 描述

<div className="api-aligning">

```json title="请求示例"
{
    "args":[
        {
            "channel":"orders-isolated",
            "instId":"BTCUSDT",
            "instType":"MARGIN"
        }
    ],
    "op":"subscribe"
}
```

### 请求参数

| 参数名 | 参数类型 | 是否必须 | 描述 | 
| :---- | :---- | :---- | :---- |
| op | String | 是 | 操作<br/>subscribe 订阅<br/>unsubscribe 取消订阅 |
| args | List&lt;Object&gt; | 是 | 请求订阅的频道列表 |
| &gt; instType | String | 是 | 产品类型 |
| &gt; channel | String | 是 | 频道名 |
| &gt; instId | String | 是 | 产品ID<br/>如：ETHUSDT |

</div>

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

<div className="api-aligning">

```json title="订阅返回示例"
{
    "event":"subscribe",
    "arg":{
        "instType":"MARGIN",
        "channel":"orders-isolated",
        "instId":"BTCUSDT"
    }
}
```

### 返回参数

| 返回字段 | 参数类型 | 字段说明 | 
| :---- | :---- | :---- |
| event | String | 事件 |
| arg | Object | 订阅的频道 |
| &gt; instType | String | 产品类型 |
| &gt; channel | String | 频道名 |
| &gt; instId | String | 产品ID。如：ETHUSDT |
| code | String | 错误码，错误时才会返回 |
| msg | String | 错误消息 |

</div>

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

<div className="api-aligning">

```json title="推送返回示例"
{
    "action":"snapshot",
    "arg":{
        "instType":"MARGIN",
        "channel":"orders-isolated",
        "instId":"BTCUSDT"
    },
    "data":[
        {
            "enterPointSource":"web",
            "force":"gtc",
            "symbol":"BTCUSDT",
            "orderType":"market",
            "price":"0.000000000",
            "quoteSize":"0.000000000",
            "side":"sell",
            "feeDetail":[
                {
                    "feeCoin":"USDT",
                    "deduction":"no",
                    "totalDeductionFee":"0",
                    "totalFee":"0.01538693"
                }
            ],
            "status":"partially_filled",
            "baseSize":"0.056100000",
            "cTime":"1697094058377",
            "uTime":"1697094058377",
            "clientOid":"1",
            "stpMode": "cancel_taker",
            "fillPrice":"26869.6530837789661319",
            "baseVolume":"0.056100000",
            "fillTotalAmount":"1507.387538000",
            "loanType":"autoRepay",
            "orderId":"1"
        }
    ],
    "ts":1697094058809
}
```

### 推送数据参数

| 返回字段                 | 参数类型 | 字段说明                                                                                                                      | 
|:---------------------|: ---- |:--------------------------------------------------------------------------------------------------------------------------|
| arg                  | Object | 订阅成功的频道                                                                                                                   |
| &gt; instType        | String | 产品类型                                                                                                                      |
| &gt; channel         | String | 频道名                                                                                                                       |
| &gt; instId          | String | 产品ID 如:ETHUSDT                                                                                                            |  
| action               | String | 推送数据动作，增量推送数据还是全量推送数据                                                                                                     |
| data                 | List&lt;Object&gt; | 订阅的数据                                                                                                                     |
| &gt; baseSize        | String | 基础币数量                                                                                                                     |
| &gt; cTime           | String | 订单创建时间                                                                                                                    |
| &gt; uTime           | String | 订单更新时间                                                                                                                    |
| &gt; clientOid       | String | 客户端唯一标识                                                                                                                   |
| &gt; fillPrice       | String | 成交价                                                                                                                       |
| &gt; baseVolume      | String | 基础币数量                                                                                                                     |
| &gt; fillTotalAmount          | String | 成交金额                                                                                                                      |
| &gt; loanType        | String | 杠杆订单模式<br/>normal        普通下单<br/>autoLoan        自动借款下单<br/>autoRepay        自动还款下单<br/>autoLoanAndRepay        自动借款还款下单 |
| &gt; orderId         | String | 订单Id                                                                                                                      |
| &gt; orderType       | String | 订单类型<br/>limit 限价<br/>market 市价                                                                                           |
| &gt; price           | String | 订单价格                                                                                                                      |
| &gt; quoteSize       | String | 计价币数量                                                                                                                     |
| &gt; side            | String | 买卖方式                                                                                                                      |
| &gt; feeDetail                         | List&lt;Object&gt; | 手续费明细                                                                                                                     |
| &nbsp;&nbsp;&gt;&gt; deduction         | String             | 是否折扣                                                                                                                      |
| &nbsp;&nbsp;&gt;&gt; totalDeductionFee | String             | 折扣手续费                                                                                                                     |
| &nbsp;&nbsp;&gt;&gt; totalFee               | String             | 总手续费                                                                                                                      |
| &nbsp;&nbsp;&gt;&gt; feeCoin           | String             | 手续费币种                                                                                                                     |
| &gt; enterPointSource| String | 订单来源<br/>WEB    WEB客户端<br/>IOS    IOS客户端<br/>ANDROID    Andriod客户端<br/>API    API客户端<br/>SYS    系统, 通常为爆仓                 |
| &gt; status          | String | 订单状态<br/>`live`:新建订单;<br/>`partially_filled`:部分成交;<br/>`filled`:全部成交;<br/>`cancelled`: 已撤销;                               |
| &gt; symbol          | String | 币对                                                                                                                        |
| &gt; force           | String | 订单有效期                                                                                                                     |
| &gt; stpMode          | String             | STP模式 <br/> `none` 不设置STP <br/> `cancel_taker` 取消taker单 <br/>  `cancel_maker` 取消maker单 <br/>  `cancel_both` 两者都取消         |
| ts | Long | 时间戳, 毫秒                                                                                                                   |  

</div>
