---
title: "place an order"
method: POST
path: "/orders"
tags: ["Orders"]
---

# place an order

`POST /orders`

The order request API allows you to place new order.

## Headers

- `access-token` string, required

## Request body

- OrderRequest
  - `dhanClientId` string — User specific identification generated by Dhan
  - `correlationId` string — The user/partner generated id for tracking back
  - `transactionType` 'BUY' | 'SELL', required — Signifies the type of transaction whether it's BUY or SELL
  - `exchangeSegment` 'NSE_EQ' | 'NSE_FNO' | 'NSE_COMM' | 'BSE_EQ' | 'BSE_FNO' | 'MCX_COMM', required — | **Enums** | **Exchange** | **Segment** | |--------------|--------------|-------------------| | NSE_EQ | NSE | Equity Cash | | NSE_FNO | NSE | Futures & Options | | NSE_COMM | NSE | Commodity | | 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 |
  - `validity` 'DAY' | 'IOC' — | **Enum Values** | **Description** | |-----------------|-----------------------| | DAY | Valid till end of day | | IOC | Immediate or Cancel |
  - `securityId` string — Exchange standard identification for each scrip
  - `quantity` integer — Number of shares for the order
  - `disclosedQuantity` integer — Number shares visible in the market depth
  - `price` number, float — Price at which the order is requested to execute
  - `triggerPrice` number, float — Price at which the order is triggered
  - `afterMarketOrder` boolean — Flag to inform that the order placed is After Market Order
  - `amoTime` 'OPEN' | 'OPEN_30' | 'OPEN_60' | 'PRE_OPEN' — Flag to inform after what time AMO is pumped
  - `boProfitValue` number, float — Bracket order Target price
  - `boStopLossValue` number, float — Bracket Order/Cover Order Stop Loss Price

## Response `200`

Successful operation

- OrderStatusResponse
  - `orderId` string — Order specific identification generated by Dhan
  - `orderStatus` 'TRANSIT' | 'PENDING' | 'REJECTED' | 'CANCELLED' | 'PART_TRADED' | 'TRADED' | 'EXPIRED' | 'MODIFIED' | 'TRIGGERED' | 'INACTIVE' — | **Enum Values** | **Description** | |-----------------|---------------------------------------------| | TRANSIT | Did not reach the exchange server | | PENDING | Reached at exchange end, awaiting execution | | REJECTED | Rejected at exchange/broker’s end | | CANCELLED | Cancelled by user | | PART_TRADED | Partially Executed | | TRADED | Executed | | 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)
