Orders
get all trades
The api allows you retrieve an array of all trades executed in a day.
get/trades
Headers
access-tokenstring required
Response
Successful operation
dhanClientIdstring
User specific identification generated by Dhan
orderIdstring
Order specific identification generated by Dhan
exchangeOrderIdstring
Order specific identification generated by Exchange
exchangeTradeIdstring
Trade specific identification, generated by exchange once order is executed
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 |
| 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 |
tradingSymbolstring
Exchange standard trading symbol
customSymbolstring
Custom trading symbol
securityIdstring
Exchange standard identification for each scrip
tradedQuantityinteger
Number of shares traded
tradedPricenumber float
Price at which trade executed
createTimestring
Record create date time
updateTimestring
Record update date time
exchangeTimestring
Time at which order reached at exchange end
drvExpiryDatestring
For F&O, expiry date of contract
drvOptionType'CALL' | 'PUT' | 'NA'
For Options, type CALL or PUT
drvStrikePricenumber float
For Options, Strike Price