Skip to main content

Modify Order V3 Beta

This is an enhanced version of the Modify Order API which includes latency information in the meta object of the response, providing insight into the time Upstox took to process your request.


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

{
"quantity": 1,
"validity": "DAY",
"price": 120.01,
"order_id": "1644490272000",
"order_type": "MARKET",
"disclosed_quantity": 0,
"trigger_price": 0
}

For all the field description, please refer to the Modify Order API documentation as all the fields are same as those used when modifing an order using the Modify Order API.

Responses

Response Body

{
"status": "success",
"data": {
"order_id": "1644490272000"
},
"metadata": {
"latency": 40
}
}
NameTypeDescription
statusstringA string indicating the outcome of the request. Typically success for successful operations.
dataobjectResponse data for modify order request
data.order_idstringOrder ID
metadataobjectOrder metadata associated with successful order modified.
metadata.latencyintegerThe overall time taken by API platform to process the order modification request, measured in milliseconds.

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...