Skip to main content

POSITION CONVERSION API

This API allows conversion of an existing position from one product type to another.
For example, converting a position from Delivery (CNC) to Intraday (MIS) or vice versa.

🔑 Header Parameters

HeaderTypeDescriptionExample
Content-TypestringSpecifies the media type of the request payloadapplication/json
AuthorizationstringDealer authentication tokenBearer {{access_token}}
x-api-keystringAPI key used to authorize the request{{x-api-key}}

📑 Request Body Parameters

FieldTypeRequiredDescriptionExample / Enum
client_idstringNoClient ID for position conversion. Leave empty for dealer-level conversion"VISHAL1"
exchangestringYesExchange segment"NSE"
scrip_tokenintegerYesToken number of the instrument12345
transaction_typestringYesTransaction type of the position"BUY" / "SELL"
quantityintegerYesQuantity to convert100
old_product_typestringYesExisting product type"CNC"
new_product_typestringYesTarget product type"MIS"
bo_order_idstringNoBracket order ID (required for BO position conversion)"20"
Is_SpreadstringNoSpread leg indicator for BO orders"Main Leg"
bo_gatewayordernostringNoGateway order number for BO orders"AGZLG900011"

🟢 Success Response - 200 OK

Content-Type: application/json

FieldTypeDescriptionExample
statusstringStatus of API call"success"
codestringResponse code to user request"s-101"
messagestringSuccess message"Position converted successfully"
dataobjectOrder response objectRefer below

📦 Data Object Fields

FieldTypeDescriptionExample
orderIdstringUnique order ID generated for the conversion request"ORD123456789"