Trigger Order Channel
Get the trigger order updates
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| op | string | Yes | Operation, subscribe unsubscribe |
| args | list | Yes | List of channels to request subscription |
| > instType | string | Yes | Product type: USDT-FUTURES |
| > channel | string | Yes | Channel name: orders-algo |
| > instId | string | No | Product ID (optional) |
Request Example
{
"op": "subscribe",
"args": [
{
"instType": "USDT-FUTURES",
"channel": "orders-algo",
"instId": "default"
}
]
}
Response Example
{
"event": "subscribe",
"arg": {
"instType": "USDT-FUTURES",
"channel": "orders-algo",
"instId": "default"
}
}
Push Parameters
| Parameter | Type | Description |
|---|---|---|
| action | string | Push data action |
| arg | object | Channels with successful subscription |
| > instType | string | Product type |
| > channel | string | Channel name |
| > instId | string | Product ID |
| data | object | Trigger order data |
| > symbol | string | Symbol |
| > size | string | Order size |
| > orderId | string | Order ID |
| > clientOid | string | Client order ID |
| > executePrice | string | Execute price |
| > status | string | Order status |
| > side | string | Order side |
| > posSide | string | Position side |
| > marginCoin | string | Margin coin |
| > triggerPrice | string | Trigger price |
| > triggerPriceType | string | Trigger price type |
| > orderType | string | Order type: TRIGGER |
| > leverage | string | Leverage |
| > marginMode | string | Margin mode |
| > tradeSide | string | Trade side: OPEN / CLOSE |
| > presetTakeProfitPrice | string | Preset take profit price |
| > presetTakeProfitExecutePrice | string | TP trigger price |
| > presetTakeProfitType | string | TP order type |
| > presetStopLossPrice | string | Preset stop loss price |
| > presetStopLossExecutePrice | string | SL trigger price |
| > presetStopLossType | string | SL order type |
| > cTime | number | Create time |
| > uTime | number | Update time |
| ts | number | Push timestamp |
Push Data
{
"action": "snapshot",
"arg": {
"instType": "USDT-FUTURES",
"channel": "orders-algo",
"instId": "default"
},
"data": {
"symbol": "BTCUSDT",
"size": "0.1",
"orderId": "123456790",
"clientOid": "my-trigger-001",
"executePrice": "27500.0",
"status": "WAIT",
"side": "LONG",
"posSide": "LONG",
"marginCoin": "USDT",
"triggerPrice": "27400.0",
"triggerPriceType": "MARK_PRICE",
"orderType": "TRIGGER",
"leverage": "10",
"marginMode": "ISOLATED",
"tradeSide": "OPEN",
"presetTakeProfitPrice": "",
"presetTakeProfitExecutePrice": "",
"presetTakeProfitType": "",
"presetStopLossPrice": "",
"presetStopLossExecutePrice": "",
"presetStopLossType": "",
"cTime": 1695716700000,
"uTime": 1695716700000
},
"ts": 1695716761589
}