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_typestringYesOrder Type"RL"
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
product_sourcestringNoSource of the order. Allowed values: WEBAPI, MOBILEAPI (case-insensitive). Any other value is ignored without an error."WEBAPI"

🟢 Success Response - 200 OK​

Content-Type: application/json

FieldTypeDescriptionExample
statusstringStatus of API call"success"
codestringResponse code"s-101"
messagestringOrder modification success message"Order Modification Sent to OMS"
dataobjectOrder response detailsRefer Data Object Fields

📦 Data Object Fields​

FieldTypeDescriptionExample
orderIdstringSystem-generated order identification number"NXVZO00086K1"