Skip to main content

Modify Order

This API modifies an existing pending regular order. Only orders that have not yet been fully executed can be modified.

🛣️Path Parameters

ParametersTypeRequiredDescriptionExample/ENUM
exchangestringyesExchange segmentsNSE_FO
order_idstringyesOrder ID from Place Order response or Order Book. Must be URL-encodedNWSYF00005>3

🔑Header Parameters

FieldTypeRequiredDescriptionExample/ENUM
content_typeStringYesSpecifies the format of the request body.application/json
AuthorizationStringyesBearer token for user authenticationaccess_token
x-api-keyStringyesThe API key provided for identifying the client application.x-api-key

📦Request Body Schema:

FieldsTypeRequiredDescriptionExample
order_typeStringyesSpecifies the Order Types of the order.."RL"
quantityintegeryesThis specifies the number of quantity users wants to modify.5
traded_quantityintegeryesQuantity already traded for this order. Fetch from Order Book before modifying50
pricenumberyesThe price at which the order will be placed, specified in rupees.Default: 0250.75
trigger_pricenumberyesThe price set by the user for stop loss or stop loss market order types. When this price is reached, the order is triggered and subsequently placed at the specified limit price.245.00
disclosed_quantityintegeryesA portion of disclosed order quantity that the user chooses to display in the market. The remaining quantity stays hidden until the disclosed quantity is fully executed20
validitystringyesDefault: "DAY"The order Validity value will be dependent on exchange segments in which the order is being placed."DAY"
validity_daysintegeryesNumber of days for which the GTD order needs to be carried forward.5

🟢Success Response - 200 Ok

FieldsTypeDescriptionExample/Enum
statusstringIndicates the result of API Call"success"
codestringResponse code corresponding to the request"s-101"
messagestringDescriptive message for the response"order modification sent to OMS"
dataobjectContains order-specific response detailsOrder Identification number generated by system

📘Data Object Info field

FieldsTypeDescriptionExample
orderIdstringSystem generated order ID after modification"NWSYF00005>3"
Important Note

The orderId may contain special characters (such as >). Always URL-encode the orderId when using it as a path parameter.

Example: >%3E

``