Skip to main content

Cancel All TP/SL Planned Orders

Response Example

{
"success": true,
"code": 0
}
  • POST /api/v1/private/stoporder/cancel_all

Required Permission: Order Placing

Request Parameters:

ParameterTypeRequiredDescription
positionIdlongfalsePosition ID. If provided, cancel only TP/SL orders for this position; if not provided, check symbol
symbolstringfalseContract name. If provided, cancel only TP/SL orders under this contract; if not, cancel TP/SL orders under all contracts

Response Parameters:

Common parameters; success: true for success, false for failure