---
title: "get all trades"
method: GET
path: "/trades"
tags: ["Orders"]
---

# get all trades

`GET /trades`

The api allows you retrieve an array of all trades executed in a day.

## Headers

- `access-token` string, required

## Response `200`

Successful operation

- TradeResponse[]
  - `dhanClientId` string — User specific identification generated by Dhan
  - `orderId` string — Order specific identification generated by Dhan
  - `exchangeOrderId` string — Order specific identification generated by Exchange
  - `exchangeTradeId` string — 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 |
  - `tradingSymbol` string — Exchange standard trading symbol
  - `customSymbol` string — Custom trading symbol
  - `securityId` string — Exchange standard identification for each scrip
  - `tradedQuantity` integer — Number of shares traded
  - `tradedPrice` number, float — Price at which trade executed
  - `createTime` string — Record create date time
  - `updateTime` string — Record update date time
  - `exchangeTime` string — Time at which order reached at exchange end
  - `drvExpiryDate` string — For F&O, expiry date of contract
  - `drvOptionType` 'CALL' | 'PUT' | 'NA' — For Options, type CALL or PUT
  - `drvStrikePrice` number, float — For Options, Strike Price

---

[API](https://skmtc.dev/dhan/apis/dhanhq-api.md) · [All operations](https://skmtc.dev/dhan/apis/dhanhq-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dhan/dhanhq-api/revisions/2d368b9ed32d/schema)
