Private
Trigger Order Channel
Description
Subscribe trigger order channel
Code
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| op | String | Yes | Operation, subscribe unsubscribe |
| args | List<Object> | Yes | List of channels to request subscription |
| > channel | String | Yes | Channel name: orders-algo |
| > instType | String | Yes | Product typeSPOT |
| > instId | String | No | Trading pair or default |
Code
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| event | String | Event |
| arg | Object | Subscribed channels |
| > channel | String | Channel name: orders-algo |
| > instType | String | Product typeSPOT |
| > instId | String | Product ID/default |
| code | String | Error code |
| msg | String | Error message |
Code
Push Parameters
| Parameter | Type | Description |
|---|---|---|
| action | String | Push action |
| arg | Object | Channels with successful subscription |
| > channel | String | Channel name: orders-algo |
| > instType | String | Product typeSPOT |
| > instId | String | Product ID |
| data | List<Object> | Subscription data |
| > instId | String | Product ID |
| > orderId | String | Bot order ID |
| > clientOid | String | Customized bot order ID |
| > triggerPrice | String | Trigger price |
| > triggerType | String | Trigger type fill_price: filled price mark_price: mark price |
| > planType | String | Websocket planType, ws Trigger order typeamounttotal |
| > price | String | Order price |
| > size | String | Original order amount in coin |
| > actualSize | String | Actual number of orders in coin |
| > orderType | String | Order type limit: limit order market |
| > side | String | Order direction, |
| > status | String | Order status |
| > executePrice | String | Execute price |
| > enterPointSource | String | Order source WEB: Orders created on the website API: Orders created on API SYS: System managed orders, usually generated by forced liquidation logic ANDROID: Orders created on the Android app IOS: Orders created on the iOS app |
| > cTime | String | Order create time, Milliseconds format of updated data timestamp Unix, e.g. 1597026383085 |
| > uTime | String | Order update time, Milliseconds format of updated data timestamp Unix, e.g. 1597026383085 |
| > stpMode | String | STP Mode none not setting STP cancel_taker cancel taker order cancel_maker cancel maker order cancel_both cancel both of taker and maker orders |
