Cancel Algo Order
Cancel Algo Order
Cancel strategy/algo orders. Supports single and batch cancellation (up to 5 orders per request).
Request URL
POST /deepcoin/v2/trade/cancel-algos
Request Parameters
| Field Name | Required | Type | Description |
|---|---|---|---|
| algos | true | array | List of algo orders to cancel, maximum 5 per request |
algos[] item fields:
| Field Name | Required | Type | Description |
|---|---|---|---|
| instId | true | string | Product ID |
| algoId | true | string | Algo order ID |
| ordType | true | string | Algo order type: conditional / tp_sl / move_order_stop |
Request Example
// Single cancellation
{
"algos": [
{
"instId": "ETH-USDT-SWAP",
"algoId": "1000595855275418",
"ordType": "conditional"
}
]
}
// Batch cancellation
{
"algos": [
{
"instId": "ETH-USDT-SWAP",
"algoId": "1000595855275418",
"ordType": "conditional"
},
{
"instId": "ETH-USDT-SWAP",
"algoId": "1000595855275419",
"ordType": "tp_sl"
}
]
}
Response Parameters
Returns an array. Each item structure:
| Field Name | Type | Description |
|---|---|---|
| algoId | string | Algo order ID |
| sCode | string | Result code, 0 means success |
| sMsg | string | Result message |
Response Example
[
{
"algoId": "1000595855275418",
"sCode": "0",
"sMsg": ""
},
{
"algoId": "1000595855275419",
"sCode": "0",
"sMsg": ""
}
]