Skip to main content

CANCEL ALL ORDERS API

This API allows you to cancel all open orders from the order book or selectively cancel specific orders.

  • If flag = true → Cancels all open orders
  • If flag = false → Cancels only the orders specified in the orders array

🔑 Header Parameters

HeaderTypeDescriptionExample
Content-TypestringSpecifies the media type of the requestapplication/json
AuthorizationstringAccess token for authenticated requests{{access_token}}
x-api-keystringAPI key used to authorize the request{{x-api-key}}

📑 Request Body Parameters

FieldTypeRequiredDescriptionExample
ordersarrayNoList of order identifiers (Exchange + Order ID)`["NSE_EQ
flagbooleanYesFlag to cancel all orders or specific onestrue

🟢 Success Response - 200 OK

Content-Type: application/json

FieldTypeDescriptionExample
statusstringStatus of API call"success"
codestringResponse code to user request"s-101"
messagestringSuccess message"Orders cancelled successfully"
dataarrayList of order cancellation resultsRefer to Data Object Fields

📦 Data Object Fields

FieldTypeDescriptionExample
statusstringStatus of order cancellation"success"
messagestringResult message"Order cancelled successfully"
order_idstringOrder identifier"ORD12345"