Skip to main content

Convert Positions

API to convert your intraday positions into delivery trades or your margin trades into cash and carry, and vice versa. Position would be converted only if the required margin is available. Delivery holdings can be converted to Intraday positions only if it is purchased on the same day before the auto square off timing. Only simple order can be converted from Intraday to delivery, Special orders like CO cannot be converted from intraday to delivery.

Header Parameters

NameRequiredTypeDescription
AuthorizationtruestringRequires the format Bearer access_token where access_token is obtained from the Token API.
Content-TypetruestringIndicates the media type of the resource, set as application/json.
AccepttruestringDefines the content format the client expects, which should be set to application/json.

Request Body

{
"instrument_token": "151064324",
"new_product": "D",
"old_product": "I",
"transaction_type": "BUY",
"quantity": 1
}
NameRequiredTypeDescription
instrument_tokentruestringKey of the instrument. For the regex pattern applicable to this field, see the Field Pattern Appendix.
new_producttruestringIndicates the new product to use for the convert positions.
Possible values: I, D, MTF.
old_producttruestringIndicates the old product to use for the convert positions.
Possible values: I, D, MTF.
transaction_typetruestringIndicates whether its a buy(b) or sell(s) order.
Possible values: BUY, SELL.
quantitytrueint32Quantity with which the position to convert
Responses

Response Body

{
"status": "success",
"data": {
"status": "complete"
}
}
NameTypeDescription
statusstringA string indicating the outcome of the request. Typically success for successful operations.
dataobjectResponse data for convert position request
data.statusstringStatus message for convert position request

Examples

A comprehensive set of examples is provided to illustrate various use cases and implementation scenarios for this API. To view detailed examples and access sample code, please refer to: API Examples.

Loading...