Global Stocks

Cancel an existing order.

delete/globalstocks/orders/{order-id}

Request

  • Base URL
    https://api.dhan.co/v2
  • URL
    https://api.dhan.co/v2/globalstocks/orders/{order-id}
  • Auth
    none declared. Required headers: access-token

Path parameters

order-idstring required

Headers

access-tokenstring required

Response

Successful operation

orderIdstring

Order specific identification generated by Dhan

orderStatus'TRANSIT' | 'PENDING' | 'REJECTED' | 'CANCELLED' | 'PART_TRADED' | 'TRADED' | 'EXPIRED' | 'MODIFIED' | 'TRIGGERED' | 'INACTIVE'
Enum ValuesDescription
TRANSITDid not reach the exchange server
PENDINGReached at exchange end, awaiting execution
REJECTEDRejected at exchange/broker’s end
CANCELLEDCancelled by user
PART_TRADEDPartially Executed
TRADEDExecuted
EXPIREDValidity of order is expired

Changes