Global Stocks

Place Order

Place a new order.

post/globalstocks/orders

Headers

access-tokenstring required

Request body

dhanClientIdstring

User specific identification generated by Dhan

correlationIdstring

The user/partner generated id for tracking back

transactionType'BUY' | 'SELL' required

Transaction type - BUY or SELL

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

Order type - MKT, LMT, SL, SLM, AMT

securityIdstring required

Exchange standard identification for each scrip

quantitynumber float

Number of shares for the order

pricenumber float

Price at which order is placed

triggerPricenumber float

Trigger price for SL/SLM orders

stopLossPricenumber float

Stop Loss Price for Super Order

targetPricenumber float

Target Price for Super Order

amountnumber float

Amount for AMT order type

afterMarketOrderboolean

Flag to inform that the order placed is After Market Order

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.