Skip to main content

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 NameRequiredTypeDescription
algostruearrayList of algo orders to cancel, maximum 5 per request

algos[] item fields:

Field NameRequiredTypeDescription
instIdtruestringProduct ID
algoIdtruestringAlgo order ID
ordTypetruestringAlgo 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 NameTypeDescription
algoIdstringAlgo order ID
sCodestringResult code, 0 means success
sMsgstringResult message

Response Example

[
{
"algoId": "1000595855275418",
"sCode": "0",
"sMsg": ""
},
{
"algoId": "1000595855275419",
"sCode": "0",
"sMsg": ""
}
]