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
| Enums | Exchange | Segment |
|---|---|---|
| NSE_EQ | NSE | Equity Cash |
| NSE_FNO | NSE | Futures & Options |
| NSE_COMM | NSE | Commodity |
| BSE_EQ | BSE | Equity Cash |
| BSE_FNO | BSE | Futures & Options |
| MCX_COMM | MCX | Commodity |
productType'CNC' | 'INTRADAY' | 'MARGIN' | 'MTF' | 'CO' | 'BO'
| Enum Values | Description |
|---|---|
| CNC | Cash & Carry for equity deliveries |
| INTRADAY | Intraday for Equity, Futures & Options |
| MARGIN | Carry Forward in Futures & Options |
| CO | Cover Order; entry and stop loss |
| BO | Bracket Order; entry, stop loss & target price |
| MTF | Margin Traded Fund |
| CO & BO product types will be valid only for Intraday |
orderType'LIMIT' | 'MARKET' | 'STOP_LOSS' | 'STOP_LOSS_MARKET'
| Enum Values | Description |
|---|---|
| LIMIT | For Limit Order types |
| MARKET | For market Order types |
| STOP_LOSS | For Stop Loss Limit orders |
| STOP_LOSS_MARKET | For Stop Loss Market orders |
validity'DAY' | 'IOC'
| Enum Values | Description |
|---|---|
| DAY | Valid till end of day |
| IOC | Immediate 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 Values | Description |
|---|---|
| TRANSIT | Did not reach the exchange server |
| PENDING | Reached at exchange end, awaiting execution |
| REJECTED | Rejected at exchange/broker’s end |
| CANCELLED | Cancelled by user |
| PART_TRADED | Partially Executed |
| TRADED | Executed |
| EXPIRED | Validity of order is expired |
Changes
No recorded changes to this endpoint across all 1 revision of this API.