Private
Cross-Margin Account Channel
Description
Code
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| op | String | Yes | Operation subscribe Subscribe unsubscribe Unsubscribe |
| args | List<Object> | Yes | List of channels to request subscription |
| > instType | String | Yes | Product type: MARGIN |
| > channel | String | Yes | Channel name: account-crossed |
| > coin | String | Yes | Coin name,default represents all the coins,Only default is supported nows |
Code
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| event | String | Event |
| arg | Object | Subscribed channels |
| > instType | String | Product type: MARGIN |
| > channel | String | Channel name: account-crossed |
| > coin | String | default |
| code | String | Error code, returned only on error |
| msg | String | Error message |
Code
Push Data Parameters
| Parameter | Type | Description |
|---|---|---|
| arg | Object | Successful channel subscriptions |
| > instType | String | Product type: MARGIN |
| > channel | String | Channel name: account-crossed |
| > coin | String | default |
| action | String | Push data action, snapshot or update |
| data | List<Object> | Subscribed data |
| > available | String | Available amount |
| > borrow | String | Borrow amount |
| > coin | String | Coin name |
| > frozen | String | Amount frozen |
| > coupon | String | Coupon |
| > id | String | ID |
| > interest | String | Interest |
| > uTime | String | Updated time |
| ts | Long | Push timestamp, Unix millisecond timestamp |
