---
title: "place forever order"
method: POST
path: "/forever/orders"
tags: ["Forever Order"]
---

# place forever order

`POST /forever/orders`

The order request api allows you place a new forever order.

## Headers

- `access-token` string, required

## Request body

- GTTOrderModel
  - `dhanClientId` string — User specific identification generated by Dhan
  - `correlationId` string — The user/partner generated id for tracking back
  - `orderFlag` 'SINGLE' | 'OCO' — | **Enum Values** | **Description** | |------------------|-----------------------------| | SINGLE | For GTT Order types | | OCO | For OCO Order types |
  - `transactionType` 'BUY' | 'SELL', required — Signifies the type of transaction whether it's BUY or SELL
  - `exchangeSegment` 'NSE_EQ' | 'NSE_FNO' | 'BSE_EQ' | 'BSE_FNO' — | **Enums** | **Exchange** | **Segment** | |--------------|--------------|-------------------| | NSE_EQ | NSE | Equity Cash | | NSE_FNO | NSE | Futures & Options | | BSE_EQ | BSE | Equity Cash | | BSE_FNO | BSE | Futures & Options |
  - `productType` 'CNC' | 'MTF' | 'MARGIN' — | **Enum Values** | **Description** | |-----------------|------------------------------------------------| | CNC | Cash & Carry for equity deliveries | | MTF | Margin Traded Fund | | MARGIN | Carry Forward in Futures & Options |
  - `orderType` 'LIMIT' | 'MARKET' — | **Enum Values** | **Description** | |------------------|-----------------------------| | LIMIT | For Limit Order types | | MARKET | For market Order types |
  - `validity` string — Valid for 1Year/Expiry
  - `securityId` string — Exchange standard identification for each scrip
  - `quantity` integer — Number of shares for the order
  - `disclosedQuantity` integer — Number of shares visible (Keep more than 30% of quantity)
  - `price` number, float — Price at which order is placed
  - `triggerPrice` number, float — Price at which the order is triggered
  - `price1` number, float — Target price for OCO order
  - `triggerPrice1` number, float — Target trigger price For OCO order
  - `quantity1` integer — Target Quantity for OCO order

## Response `200`

Successful operation

- GttOrderStatusResponse
  - `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 |

---

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