Skip to content

Cancel All Orders

Cancel all orders The Cancel All Orders API can be called to cancel all open orders either for a particular segment by passing zero(0) in ExchangeInstrumentId or can cancel all open orders of a particular instrumentID by passing ExchangeinstrumentID in the request.

Method: POST

{{SERVER_URL}}/api/V2/orders/cancelAll

Headers

Content-Type Value
Authorization {{AUTH_TOKEN}}

Request Body: URL Encoded

Param Value
exchangeSegment The segment which represents cash, derivative, commodity, or currency market
exchangeInstrumentId The security id of the instrument
clientID Required in case of dealer

Response: 200

{
    "code": 200,
    "description": "Cancel All Orders Request Sent Successfully",
    "result": "",
    "type": "success"
}