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 | Type | Description | Example |
|---|
| Content-Type | string | Specifies the media type of the request | application/json |
| Authorization | string | Access token for authenticated requests | {{access_token}} |
| x-api-key | string | API key used to authorize the request | {{x-api-key}} |
📑 Request Body Parameters
| Field | Type | Required | Description | Example |
|---|
| orders | array | No | List of order identifiers (Exchange + Order ID) | `["NSE_EQ |
| flag | boolean | Yes | Flag to cancel all orders or specific ones | true |
🟢 Success Response - 200 OK
Content-Type: application/json
| Field | Type | Description | Example |
|---|
| status | string | Status of API call | "success" |
| code | string | Response code to user request | "s-101" |
| message | string | Success message | "Orders cancelled successfully" |
| data | array | List of order cancellation results | Refer to Data Object Fields |
📦 Data Object Fields
| Field | Type | Description | Example |
|---|
| status | string | Status of order cancellation | "success" |
| message | string | Result message | "Order cancelled successfully" |
| order_id | string | Order identifier | "ORD12345" |