Skip to main content

Cancel Plan Order

Cancel one or more existing trigger orders (plan orders).

HTTP Request

POST /api/v1/future/order/cancel-plan-order

Request Parameters

ParameterTypeRequiredDescription
symbolstringYesTrading pair symbol (e.g., BTCUSDT)
orderIdListarrayYesList of orders to cancel

orderIdList Item

ParameterTypeRequiredDescription
orderIdstringNoOrder ID (either orderId or clientOid required)
clientOidstringNoClient order ID

Request Example

curl -X POST "https://open-api.bydoxe.com/api/v1/future/order/cancel-plan-order" \
-H "ACCESS-KEY: your-api-key" \
-H "ACCESS-SIGN: your-signature" \
-H "ACCESS-PASSPHRASE: your-passphrase" \
-H "ACCESS-TIMESTAMP: 1659076670000" \
-H "Content-Type: application/json" \
-d '{
"symbol": "BTCUSDT",
"orderIdList": [
{ "orderId": "fu-plan-123456789" },
{ "clientOid": "my-plan-order-002" }
]
}'

Response Parameters

ParameterTypeDescription
codestringResponse code
msgstringResponse message
requestTimenumberRequest timestamp in milliseconds
dataobjectBatch order response data
> successListarrayList of successfully cancelled orders
> failureListarrayList of failed cancellations

successList/failureList Item

ParameterTypeDescription
orderIdstringOrder ID
clientOidstringClient order ID

Response Example

Success Response

{
"code": "00000",
"msg": "success",
"requestTime": 1763459280000,
"data": {
"successList": [{ "orderId": "fu-plan-123456789", "clientOid": "" }],
"failureList": []
}
}

Error Codes

CodeMessage
40001Order not found (in failureList)