Convert Position
This API allows you to convert an open position from one product type to another.
USE CASE
Change the product type of an open position without closing it and placing a new order.
Note
CNC and MTF positions cannot be converted. You also cannot convert positions to MTF.
Details
- This allows the user to convert an open position from one product type to another.
symboltakes the position id, for exampleNSE:SBIN-EQ-INTRADAY. Get it from Get Positions.overnight: send 1 if the position is a carry forward position. Send 0 if the position was taken today, whatever its product type.positionSide: 1 for open long positions and -1 for open short positions.convertQtyis the quantity to convert. For derivatives it has to be a multiple of the lot size.- A request that is not allowed returns an error
message, for example that a CNC position cannot be converted to INTRADAY or MARGIN. - Rate limits differ between the Standard and Prime plans. See Plans & rate limits.
Request Attributes
| Attribute | Data Type | Description |
|---|---|---|
symbol* | string |
|
overnight* | int | Mandatory. if the position to be converted is a carry forward position, then send overnight flag as 1. If the position is taken today, irrespective of its product type, then send overnight flag as 0 |
positionSide* | int |
|
convertQty* | int | Mandatory. Quantity to be converted. Has to be in multiples of lot size for derivatives |
convertFrom* | string |
|
convertTo* | string |
|
Notes
- CNC and MTF positions cannot be converted.
- You cannot convert positions to MTF.
Response Attributes
| Attribute | Data Type | Description |
|---|---|---|
s | string | ok / error |
code | int | This is the code to identify specific responses |
message | string |
|
Last updated on