Skip to main content

Position Conversion

This API converts an existing open position from one product type to another (e.g., INTRADAYDELIVERY or DELIVERYINTRADAY).

Prerequisite: The position you want to convert must exist as an open position. Use the Positions API to fetch current open positions and obtain the correct exchange and scrip_token values before calling this API.

Next Step: This API submits the conversion request to the OMS and returns an orderId. To confirm whether the conversion was accepted or rejected by the OMS, use the returned orderId with the Position Conversion Inquiry API.

🔑Header Parameters

HeaderTypeRequiredDescriptionExample
Content-TypestringYesFormat of request payloadapplication/json
AuthorizationstringYesBearer access tokenBearer access token
x-api-keystringYesUnique API key providedx-api-key

📦Request Body Schema

FieldTypeRequiredDescriptionExample/ENUM
exchangestringYesExchange segments"NSE_EQ", "BSE_EQ", "NSE_FO"
scrip_tokenintegerYesToken ID of the instrument10123
transaction_typestringYesDirection of trade"BUY"
quantityintegerYesQuantity to convert100
old_product_typestringYesExisting Product type"DELIVERY"
new_product_typestringYesProduct type to convert into"INTRADAY"
bo_order_idstringNoBracket Order ID (Required only for Bracket Orders)"B0123456"

🟢Success Response - 200 Ok

FieldTypeDescriptionExample
statusstringIndicates the status of the API call"success"
codestringResponse status code of the API Request"s-101"`
messagestringIndicates the request was dispatched to the OMSPosition Conversion Request Sent to OMS
dataobjectContains the order identifier for tracking the conversion"orderID" : "PCV123456"

📘Data Object Info Field

FieldTypeDescriptionExample
order_IDstringSystem-generated order ID for this conversion request. Pass this to the Position Conversion Inquiry API to check the actual conversion result"PCV1234556"