Private
ADL Notification Channel
Description
ADL (Auto-Deleveraging) is a risk management mechanism that automatically reduces a trader's position when their margin balance falls below the maintenance margin requirement. This channel pushes real-time notifications when an ADL event is triggered for a position under the unified trading account.
- Subscribe to
adl-notificationto receive push notifications when your position enters the ADL queue or is being auto-deleveraged. - The push data includes the symbol, position side, execution price, and execution amount of the affected position.
Code
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| op | String | Yes | Operation subscribe/unsubscribe |
| args | List<Object> | Yes | Subscribed channels |
| > instType | String | Yes | Product typeUTA Unified trading account |
| > topic | String | Yes | Topic adl-notification ADL Notification |
Code
Response Parameters
| Parameters | Type | Description |
|---|---|---|
| event | String | Operation subscribe / unsubscribe / error |
| arg | Object | Subscribed channel |
| > instType | String | Product type UTA |
| > topic | String | Topic adl-notification ADL Notification |
| code | String | Error code |
| msg | String | Error message |
| connId | String | Connection ID |
Code
Push Parameters
| Parameters | Type | Description |
|---|---|---|
| arg | Object | Subscribed channel |
| ts | String | Push timestamp Unix millisecond timestamp |
| > instType | String | product type UTA Unified trading account |
| > topic | String | Topic adl-notification ADL Notification |
| action | String | Action: update Incremental data |
| data | List<Object> | Subscribed data |
| >symbol | String | Symbol name |
| >side | String | Position side buy Buysell Sell |
| >status | String | ADL status triggered Triggered; the ADL has been activated and the position is being reduced |
| >price | String | ADL execution price |
| >amount | String | ADL execution amount Unit: base coin. For example, 2.35 means 2.35 base coins of the affected position were reduced |
| >ts | String | ADL start time (Unix millisecond timestamp) |
