Public
Margin Index Price
Description
Subscribe margin trading pair index price
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 |
| > instId | String | Yes | Product ID Only support: default(all symbols) |
Code
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| event | String | Event |
| arg | Object | Subscribed channels |
| > instType | String | Product type: MARGIN |
| > channel | String | Channel name |
| > instId | String | Product IDdefault |
| code | String | Error code, returned only on error |
| msg | String | Error message |
Code
Push Parameters
| Parameter | Type | Description |
|---|---|---|
| arg | Object | Channels with successful subscription |
| > instType | String | Product type: MARGIN |
| > channel | String | Channel name |
| > instId | String | Product ID |
| action | String | Push data action, snapshot or update |
| data | List<Object> | Subscribed data |
| > baseCoin | String | Base currency |
| > indexPrice | String | Index price |
| > quoteCoin | String | Quote currency |
| > symbol | String | Trading pair |
| > ts | String | Data generation time, Unix millisecond timestamp |
| ts | Long | Push timestamp, Unix millisecond timestamp |
