Forever Order
get forever orders list
The api allows you to retrieve an array of all forever orders placed with their last updated status.
get/forever/orders
Headers
access-tokenstring required
Response
Successful operation
dhanClientIdstring
User specific identification generated by Dhan
orderIdstring
Order specific identification generated by Dhan
orderStatus'PENDING' | 'REJECTED' | 'CANCELLED' | 'EXPIRED'
| Enum Values | Description |
|---|---|
| PENDING | Reached at exchange end, awaiting execution |
| REJECTED | Rejected at exchange/broker’s end |
| CANCELLED | Cancelled by user |
| EXPIRED | Validity of order is expired |
transactionType'BUY' | 'SELL'
Signifies the type of transaction whether it's BUY or SELL
exchangeSegment'NSE_EQ' | 'NSE_FNO' | 'BSE_EQ' | 'BSE_FNO' | 'MCX_COMM'
| Enums | Exchange | Segment |
|---|---|---|
| NSE_EQ | NSE | Equity Cash |
| NSE_FNO | NSE | Futures & Options |
| BSE_EQ | BSE | Equity Cash |
| MCX_COMM | MCX | Commodity |
productType'CNC' | 'INTRADAY' | 'MARGIN'
| Enum Values | Description |
|---|---|
| CNC | Cash & Carry for equity deliveries |
| INTRADAY | Intraday for Equity, Futures & Options |
| MARGIN | Carry Forward in Futures & Options |
orderType'SINGLE' | 'OCO'
| Enum Values | Description |
|---|---|
| SINGLE | For Single Forever Order types |
| OCO | For OCO Forever Order types |
tradingSymbolstring
Exchange standard trading symbol
securityIdstring
Exchange standard identification for each scrip
quantityinteger
Number of shares for the order
pricenumber float
Price at which order is placed
triggerPricenumber float
Price at which the order is triggered
legName'TARGET_LEG' | 'STOP_LOSS_LEG'
Order leg of Forever Order where modification is to be done
createTimestring
Time at which the record is created
updateTimestring
Time at which the record is updated
exchangeTimestring
Time at which order reached at exchange end
drvExpiryDatestring
Contract Expiry Date for F&O
drvOptionType'CALL' | 'PUT' | 'NA'
Type of Option
drvStrikePricenumber float
Strike Price for Options