---
title: "convert position"
method: POST
path: "/positions/convert"
tags: ["Positions & Portfolio"]
---

# convert position

`POST /positions/convert`

Users can convert their open position from intraday to delivery or delivery to intraday.

## Headers

- `access-token` string, required

## Request body

- PositionConversionRequest
  - `dhanClientId` string — User specific identification generated by Dhan
  - `fromProductType` '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 |
  - `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 |
  - `positionType` 'LONG' | 'SHORT' | 'CLOSED' — | **Enum Values** | **Description** | |-----------------|-----------------------------------------------------| | LONG | When net bought quantity is more than sold quantity | | SHORT | When net sold quantity is more than bought quantity | | CLOSED | When no open position standing |
  - `securityId` string — Exchange standard identification for each scrip
  - `convertQty` integer — Number of shares for the conversion
  - `toProductType` '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 |

## Response `202`

Successful operation

---

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