# Cross-Margin Account Channel

### Description

<div className="api-aligning">

```json title="Request Example"
{
    "args":[
        {
            "channel":"account-crossed",
            "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: `account-crossed`                               |
| &gt; coin     | String | Yes | Coin name，`default` represents all the coins，Only default is supported nows                                                     |

</div>

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

<div className="api-aligning">

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

### Response Parameters

| Parameter     | Type | Description                        | 
|:--------------| :---- |:-----------------------------------|
| event         | String | Event                              |
| arg           | Object | Subscribed channels                |
| &gt; instType | String | Product type: `MARGIN`             |
| &gt; channel  | String |  Channel name: `account-crossed`   |
| &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-crossed",
        "coin":"default"
    },
    "data":[
        {
            "uTime":"1695881380854",
            "id":"1",
            "coin":"USDT",
            "available":"31092.45075078",
            "borrow":"0.00000000",
            "frozen":"6.00000000",
            "interest":"0.00000000",
            "coupon":"0.00000000"
        },
        {
            "uTime":"1695881380854",
            "id":"1",
            "coin":"BTC",
            "available":"0.00000000",
            "borrow":"0.99990096",
            "frozen":"0.00000000",
            "interest":"0.00416626",
            "coupon":"0.00000000"
        }
    ],
    "ts":1695881380856
}
```

### Push Data Parameters

| Parameter      | Type | Description                              | 
|:---------------| :---- |:-----------------------------------------|
| arg            | Object | Successful channel subscriptions         |
| &gt; instType  | String | Product type: `MARGIN`                   |
| &gt; channel   | String | Channel name: `account-crossed`          |
| &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; coin      | String | Coin name                                |
| &gt; frozen    | String | Amount frozen                            |
| &gt; coupon    | String | Coupon                                   |
| &gt; id        | String | ID                                       |
| &gt; interest  | String | Interest                                 |
| &gt; uTime     | String | Updated time                             |
| ts             | Long   | Push timestamp, Unix millisecond timestamp |

</div>
