Positions & Portfolio

convert position

Changed on

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

post/positions/convert

Request

  • Base URL
    https://api.dhan.co/v2
  • URL
    https://api.dhan.co/v2/positions/convert
  • Auth
    none declared. Required headers: access-token

Headers

access-tokenstring required

Request body

dhanClientIdstring

User specific identification generated by Dhan

fromProductType'CNC' | 'INTRADAY' | 'MARGIN' | 'MTF' | 'CO' | 'BO'
Enum ValuesDescription
CNCCash & Carry for equity deliveries
INTRADAYIntraday for Equity, Futures & Options
MARGINCarry Forward in Futures & Options
exchangeSegment'NSE_EQ' | 'NSE_FNO' | 'BSE_EQ' | 'BSE_FNO' | 'MCX_COMM'
EnumsExchangeSegment
NSE_EQNSEEquity Cash
NSE_FNONSEFutures & Options
BSE_EQBSEEquity Cash
BSE_FNOBSEFutures & Options
MCX_COMMMCXCommodity
positionType'LONG' | 'SHORT' | 'CLOSED'
Enum ValuesDescription
LONGWhen net bought quantity is more than sold quantity
SHORTWhen net sold quantity is more than bought quantity
CLOSEDWhen no open position standing
securityIdstring

Exchange standard identification for each scrip

convertQtyinteger

Number of shares for the conversion

toProductType'CNC' | 'INTRADAY' | 'MARGIN' | 'MTF' | 'CO' | 'BO'
Enum ValuesDescription
CNCCash & Carry for equity deliveries
INTRADAYIntraday for Equity, Futures & Options
MARGINCarry Forward in Futures & Options

Response

Successful operation

Changes