Orders

place slice order

The order request API allows you to place a new slice order.

post/orders/slicing

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

Signifies the type of transaction whether it's BUY or SELL

exchangeSegment'NSE_EQ' | 'NSE_FNO' | 'NSE_COMM' | 'BSE_EQ' | 'BSE_FNO' | 'MCX_COMM' required
EnumsExchangeSegment
NSE_EQNSEEquity Cash
NSE_FNONSEFutures & Options
NSE_COMMNSECommodity
BSE_EQBSEEquity Cash
BSE_FNOBSEFutures & Options
MCX_COMMMCXCommodity
productType'CNC' | 'INTRADAY' | 'MARGIN' | 'MTF' | 'CO' | 'BO'
Enum ValuesDescription
CNCCash & Carry for equity deliveries
INTRADAYIntraday for Equity, Futures & Options
MARGINCarry Forward in Futures & Options
COCover Order; entry and stop loss
BOBracket Order; entry, stop loss & target price
MTFMargin Traded Fund
CO & BO product types will be valid only for Intraday
orderType'LIMIT' | 'MARKET' | 'STOP_LOSS' | 'STOP_LOSS_MARKET'
Enum ValuesDescription
LIMITFor Limit Order types
MARKETFor market Order types
STOP_LOSSFor Stop Loss Limit orders
STOP_LOSS_MARKETFor Stop Loss Market orders
validity'DAY' | 'IOC'
Enum ValuesDescription
DAYValid till end of day
IOCImmediate or Cancel
securityIdstring

Exchange standard identification for each scrip

quantityinteger

Number of shares for the order

disclosedQuantityinteger

Number shares visible in the market depth

pricenumber float

Price at which the order is requested to execute

triggerPricenumber float

Price at which the order is triggered

afterMarketOrderboolean

Flag to inform that the order placed is After Market Order

amoTime'OPEN' | 'OPEN_30' | 'OPEN_60' | 'PRE_OPEN'

Flag to inform after what time AMO is pumped

boProfitValuenumber float

Bracket order Target price

boStopLossValuenumber float

Bracket Order/Cover Order Stop Loss Price

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.