---
title: "get forever orders list"
method: GET
path: "/forever/orders"
tags: ["Forever Order"]
---

# get forever orders list

`GET /forever/orders`

The api allows you to retrieve an array of all forever orders placed with their last updated status.

## Headers

- `access-token` string, required

## Response `200`

Successful operation

- GttOrderResponse[]
  - `dhanClientId` string — User specific identification generated by Dhan
  - `orderId` string — 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 |
  - `tradingSymbol` string — Exchange standard trading symbol
  - `securityId` string — Exchange standard identification for each scrip
  - `quantity` integer — Number of shares for the order
  - `price` number, float — Price at which order is placed
  - `triggerPrice` number, 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
  - `createTime` string — Time at which the record is created
  - `updateTime` string — Time at which the record is updated
  - `exchangeTime` string — Time at which order reached at exchange end
  - `drvExpiryDate` string — Contract Expiry Date for F&O
  - `drvOptionType` 'CALL' | 'PUT' | 'NA' — Type of Option
  - `drvStrikePrice` number, float — Strike Price for Options

---

[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)
