Skip to Content

Modify Multi Order

This API allows you to modify multiple orders in a single request.

USE CASE

Update up to 10 pending orders together, for example to move their prices at the same time.

Details

  • You can modify upto 10 orders simultaneously via the API.
  • While Modifying Multi orders you need to pass an ARRAY containing the orders request attributes
  • Modifying orders needs an app with the Order Placement permission.
  • Send an array with one object per order. Each object carries the order id, its type and the fields to change, as in Modify Single Order.
  • Only pending orders can be modified. Any field you leave out keeps its original value.
  • Prices must be multiples of the symbol tick size, and quantity must follow the lot-size rules.
  • Modify requests count towards the limit of 10 orders per second shared with placing and cancelling. Requests beyond it are rejected.
  • The response has one entry per order with its own statusCode, message and id. Check every entry.
  • For order types, product types, validations and sync vs async behaviour, refer to the Order Placement Guide.
  • When order rate limiting is triggered, the API returns 429 Too Many Requests.
  • Retry timing is provided through response headers, not in the response body.
  • Retry-After — Wait time before retrying, in seconds
  • X-Retry-After-Ms — Wait time before retrying, in milliseconds
  • Use the retry interval returned in the response headers before sending another order request.
  • Rate limits differ between the Standard and Prime plans. See Plans & rate limits.

Request Attributes

AttributeData TypeDescription
id*string
  • Mandatory.
  • Eg: 119031547242
type*intMandatory.
limitPricefloatMandatory. Only incase of Limit/ Stoplimit orders
stopPricefloatMandatory. Only incase of Stop/ Stoplimit orders
qtyintMandatory. Incase you want to modify the quantity
disclosedQtyintDisclosed quantity (Optional)

Response Attributes

AttributeData TypeDescription
sstringOverall status of the request: "ok" for success, "error" for failure.
codeintOverall response code, e.g. 200 on success.
messagestringOverall message for the request (empty string on success).
dataarrayList of per-order results, one entry for each order submitted in the request, in the same order they were sent.
data[].statusCodeintHTTP-style status code for this specific order's modify request, e.g. 200.
data[].statusDescriptionstringStatus description for this specific order's modify request, e.g. "HTTP OK".
data[].bodyobjectResult for this order. It has the same fields as the Modify Single Order response.
data[].body.sstringok / error
data[].body.codeint
  • This is the code to identify specific responses
  • If 201 comes in code it implies that order request has been made but no acknowledgement has been received in this case check orderbook before placing order
data[].body.messagestring
  • Message to clarify the request status.
  • Eg: Successfully modified order
data[].body.idstring
  • The order number of the modified order
  • Eg: 119031547242
Last updated on