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 | Type | Description | Example |
|---|
| Content-Type | string | Specifies the media type of the request payload | application/json |
| Authorization | string | Dealer authentication token | Bearer {{access_token}} |
| x-api-key | string | API key used to authorize the request | {{x-api-key}} |
📑 Request Body Parameters
| Field | Type | Required | Description | Example / Enum |
|---|
| client_id | string | No | Client ID for position conversion. Leave empty for dealer-level conversion | "VISHAL1" |
| exchange | string | Yes | Exchange segment | "NSE" |
| scrip_token | integer | Yes | Token number of the instrument | 12345 |
| transaction_type | string | Yes | Transaction type of the position | "BUY" / "SELL" |
| quantity | integer | Yes | Quantity to convert | 100 |
| old_product_type | string | Yes | Existing product type | "CNC" |
| new_product_type | string | Yes | Target product type | "MIS" |
| bo_order_id | string | No | Bracket order ID (required for BO position conversion) | "20" |
| Is_Spread | string | No | Spread leg indicator for BO orders | "Main Leg" |
| bo_gatewayorderno | string | No | Gateway order number for BO orders | "AGZLG900011" |
🟢 Success Response - 200 OK
Content-Type: application/json
| Field | Type | Description | Example |
|---|
| status | string | Status of API call | "success" |
| code | string | Response code to user request | "s-101" |
| message | string | Success message | "Position converted successfully" |
| data | object | Order response object | Refer below |
📦 Data Object Fields
| Field | Type | Description | Example |
|---|
| orderId | string | Unique order ID generated for the conversion request | "ORD123456789" |