Positions & Portfolio

convert position

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

post/positions/convert

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

No recorded changes to this endpoint across all 1 revision of this API.