Pending Algo Orders
Pending Algo Orders
Query the list of pending (untriggered) strategy/algo orders. Filter by ordType, or omit to return all types.
Request URL
GET /deepcoin/v2/trade/orders-algo-pending
Request Parameters (Query String)
| Field Name | Required | Type | Description |
|---|---|---|---|
| instId | true | string | Product ID |
| ordType | false | string | Algo order type: conditional / tp_sl / move_order_stop. If omitted, returns all types |
| orderType | false | string | Order type after trigger: market / limit, only applicable to conditional |
| limit | false | integer | Number of results per page, maximum 100, default 100 |
Request Example
// Query all pending algo orders
GET /deepcoin/v2/trade/orders-algo-pending?instId=ETH-USDT-SWAP&limit=100
// Query conditional orders only
GET /deepcoin/v2/trade/orders-algo-pending?instId=ETH-USDT-SWAP&ordType=conditional&orderType=limit&limit=100
Response Parameters
Returns an array. Each item structure (AlgoOrderV2):
| Field Name | Type | Description |
|---|---|---|
| algoId | string | Algo order ID |
| instType | string | Product type |
| instId | string | Product ID |
| ordType | string | Algo order type: conditional / tp_sl / move_order_stop |
| side | string | Order side Buy: buySell: sell |
| posSide | string | Position side Long: longShort: short |
| tdMode | string | Trading mode |
| lever | string | Leverage |
| sz | string | Order size |
| triggerPx | string | Trigger price / activation price |
| triggerPxType | string | Trigger price type |
| orderPx | string | Order price after trigger |
| orderType | string | Order type after trigger |
| tpTriggerPx | string | Take-profit trigger price |
| tpTriggerPxType | string | Take-profit trigger price type |
| tpOrdPx | string | Take-profit order price |
| slTriggerPx | string | Stop-loss trigger price |
| slTriggerPxType | string | Stop-loss trigger price type |
| slOrdPx | string | Stop-loss order price |
| openTpTriggerPx | string | Take-profit trigger price after conditional order opens position |
| openSlTriggerPx | string | Stop-loss trigger price after conditional order opens position |
| retracePoint | string | Trailing stop retracement spread |
| breakPx | string | Trailing stop breakout price |
| isTriggered | string | Trailing stop activation status |
| cTime | string | Creation time, Unix timestamp in milliseconds |
| uTime | string | Update time, Unix timestamp in milliseconds |
Response Example
[
{
"algoId": "1000595855275418",
"instType": "SWAP",
"instId": "ETH-USDT-SWAP",
"ordType": "conditional",
"side": "buy",
"posSide": "long",
"tdMode": "cross",
"lever": "10",
"sz": "1",
"triggerPx": "1800",
"triggerPxType": "last",
"orderPx": "1795",
"orderType": "limit",
"tpTriggerPx": "",
"slTriggerPx": "",
"openTpTriggerPx": "2200",
"openSlTriggerPx": "1700",
"retracePoint": "",
"breakPx": "",
"isTriggered": "",
"cTime": "1739263130000",
"uTime": "1739263130000"
},
{
"algoId": "",
"instId": "ETH-USDT-SWAP",
"ordType": "move_order_stop",
"side": "",
"posSide": "long",
"tdMode": "",
"lever": "",
"sz": "",
"triggerPx": "3000",
"retracePoint": "50",
"breakPx": "3050",
"isTriggered": "1",
"cTime": "1739263135000",
"uTime": ""
}
]