Public
Margin Coins Channel
Description
Push changes to margin coin information. This channel pushes when a margin coin's status is enabled/disabled, or when its discount rate tiers change. A full snapshot of the current margin coin information is pushed immediately after a successful subscription.
Code
Request Parameters
| Parameters | Type | Required | Description |
|---|---|---|---|
| op | String | Yes | Operation subscribe Subscribe unsubscribe Unsubscribe |
| args | List<Object> | Yes | Subscribed channel |
| > instType | String | Yes | Product typeuta Unified Trading Account |
| > topic | String | Yes | Topic margin-coins Margin coins channel |
| > coin | String | Yes | Coin name e.g. BTC |
Code
Response Parameters
| Parameters | Type | Description |
|---|---|---|
| event | String | Event |
| arg | Object | Subscribed channel |
| > instType | String | Product typeuta Unified Trading Account |
| > topic | String | Topic margin-coins Margin coins channel |
| > coin | String | Coin name e.g. BTC |
| code | String | Error code |
| msg | String | Error message |
| connId | String | Connection ID |
Code
Push Parameters
| Parameters | Parameter Type | Description |
|---|---|---|
| arg | Object | Subscribed successful channel |
| > instType | String | Product typeuta Unified Trading Account |
| > topic | String | Topic margin-coins Margin coins channel |
| > coin | String | Coin name e.g. BTC |
| action | String | Data push action snapshot Full data update Incremental data |
| data | List<Object> | Subscribed data |
| > coin | String | Coin name |
| > list | List<Object> | List |
| >> marginCoin | String | Margin coin |
| >> discountRateList | List<Object> | Discount rate list |
| >>> tierStartValue | String | Tier start value e.g. [0, 10000 U): tierStartValue=0 [10000 U, 20000 U): tierStartValue=10000 [20000 U, ∞): tierStartValue=20000 |
| >>> discountRate | String | Discount rate Returned as a decimal, e.g. 0.9 represents 90% |
| >> status | String | Margin coin status enabled Enabled disabled Disabled |
