# Isolated-Margin Account Channel

### Description

<div className="api-aligning">

```json title="Request Example"
{
    "args":[
        {
            "channel":"account-isolated",
            "coin":"default",
            "instType":"MARGIN"
        }
    ],
    "op":"subscribe"
}
```

### Request Parameters

| Parameter     | Type | Required | Description                                                   | 
|:--------------| :---- | :---- |:--------------------------------------------------------------|
| op            | String | Yes | Operation<br/>subscribe Subscribe<br/>unsubscribe Unsubscribe |
| args          | List&lt;Object&gt; | Yes | List of channels to request subscription                      |
| &gt; instType | String | Yes | Product type: MARGIN                                          |
| &gt; channel  | String | Yes | Channel name                                                  |
| &gt; coin     | String | Yes | Coin name，`default` represents all the coins，Only default is supported now                                                     |

</div>

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

<div className="api-aligning">

```json title="Response Example"
{
    "event":"subscribe",
    "arg":{
        "instType":"MARGIN",
        "channel":"account-isolated",
        "coin":"default"
    }
}
```

### Response Parameters

| Parameter     | Type | Description | 
|:--------------| :---- | :---- |
| event         | String | Event |
| arg           | Object | Subscribed channels |
| &gt; instType | String | Product type |
| &gt; channel  | String | Channel name |
| &gt; coin     | String | `default` |
| code          | String | Error code, returned only on error |
| msg           | String | Error message |

</div>

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

<div className="api-aligning">

```json title="Push Data"
{
  "action":"snapshot",
  "arg":{
    "instType":"MARGIN",
    "channel":"account-isolated",
    "coin":"default"
  },
  "data":[
    {
      "uTime":"1695881380876",
      "id":"1",
      "coin":"USDT",
      "symbol":"BTCUSDT",
      "available":"989.4502207",
      "borrow":"0",
      "frozen":"0",
      "interest":"0",
      "coupon":"0"
    },
    {
      "uTime":"1695881380876",
      "id":"1000000002",
      "coin":"BTC",
      "symbol":"BTCUSDT",
      "available":"0.00039814",
      "borrow":"0",
      "frozen":"0",
      "interest":"0",
      "coupon":"0"
    },
    {
      "uTime":"1695881380876",
      "id":"1000000001",
      "coin":"USDT",
      "symbol":"ETHUSDT",
      "available":"9607383.17171658",
      "borrow":"0",
      "frozen":"0",
      "interest":"0",
      "coupon":"0"
    },
    {
      "uTime":"1695881380876",
      "id":"1000000000",
      "coin":"ETH",
      "symbol":"ETHUSDT",
      "available":"2.5574646",
      "borrow":"0",
      "frozen":"0",
      "interest":"0",
      "coupon":"0"
    }
  ],
  "ts":1695881380876
}
```

### Push Data Parameters

| Parameter      | Type  | Description                              | 
|:---------------| :---- |:-----------------------------------------|
| arg            | Object | Successful channel subscriptions         |
| &gt; instType  | String | Product type                             |
| &gt; channel   | String | Channel name                             |
| &gt; coin      | String | `default`                                |
| action         | String | Push data action, `snapshot` or `update` |
| data           | List&lt;Object&gt; | Subscribed data                          |
| &gt; available | String | Available amount                         |
| &gt; borrow    | String | Borrow amount                            |
| &gt; symbol    | String | Trading pair                             |
| &gt; coin      | String | Coin name                                |
| &gt; frozen    | String | Amount frozen                            |
| &gt; id        | String | ID                                       |
| &gt; interest  | String | Interest                                 |
| &gt; uTime     | String | Updated time, ms                         |
| &gt; coupon    | String | Coupon                                   |

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

</div>
