Global Stocks

Modify order

Modify an existing order.

put/globalstocks/orders/{order-id}

Path parameters

order-idstring required

Headers

access-tokenstring required

Request body

dhanClientIdstring

User specific identification generated by Dhan

orderType'MARKET' | 'LIMIT' | 'STOP_LOSS' | 'STOP_LOSS_MARKET' | 'AMOUNT' required

Order type - MARKET, LIMIT, STOP_LOSS, STOP_LOSS_MARKET

transactionType'BUY' | 'SELL' required

Transaction type - BUY or SELL

securityIdstring required

Exchange standard identification for each scrip

quantitynumber float

Number of shares for the order

pricenumber float

Price at which order is placed

legName'ENTRY_LEG' | 'STOP_LOSS_LEG' | 'TARGET_LEG' | 'NA' | 'ENTRY_LEG' | 'STOP_LOSS_LEG' | 'TARGET_LEG'

Leg name - ENTRY_LEG, STOP_LOSS_LEG, TARGET_LEG

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

No recorded changes to this endpoint across all 1 revision of this API.