Skip to main content

MODIFY ORDER

This API enables modification of existing orders for authorized end users through a middleware-based integration.

Only eligible pending orders can be modified.

🔗 Path Parameters

ParameterTypeRequiredDescriptionExample
exchangestringYesExchange segment in which the order is placed"MCX_FO"
order_idstringYesOrder ID of the order to be modified"NXVZO00086K1"

🔍 Query Parameters

ParameterTypeRequiredDescriptionExample
userIdstringYesUser ID (UCC)"{{user_id}}"

🔑 Header Parameters

HeaderTypeDescriptionExample
Content-TypestringRequest payload formatapplication/json
AuthorizationstringAccess token for authenticated requests{{access_token}}
x-api-keystringAPI key used to authorize request{{x-api-key}}

📑 Request Body Parameters

FieldTypeRequiredDescriptionExample
order_typestringYesType of order"LIMIT"
quantityintegerYesModified order quantity100
traded_quantityintegerYesCumulative traded quantity of the order. Available in Order Book response25
pricenumberNoModified order price in rupees1500.50
trigger_pricenumberNoTrigger price for Stop Loss orders1495.00
disclosed_quantityintegerNoQuantity to be disclosed to the market50
validitystringNoOrder validity"DAY"
validity_daysintegerNoNumber of days for GTD validity30

🟢 Success Response - 200 OK

Content-Type: application/json

FieldTypeDescriptionExample
statusstringStatus of API call"success"
codestringResponse code"s-101"
messagestringOrder modification success message"Order modified successfully"
dataobjectOrder response detailsRefer Data Object Fields

📦 Data Object Fields

FieldTypeDescriptionExample
orderIdstringSystem-generated order identification number"NXVZO00086K1"