Modify Order
The Modify Order API allows you to adjust the price, quantity, order type, or validity of an existing pending order without canceling it.
Method: PUT
Endpoint: orders/{order_id}
cURL
curl --location --globoff --request PUT 'https://api.nubra.io/orders/{order_id}' \
--header 'x-device-id: TEST21234' \
--header 'Content-Type: text/plain' \
--header 'Authorization: Bearer Bearer eyJh...6Pno' \
--data '
 {
  "order_qty": 1,
  "order_price":201000
  }'
Payload
{
  "order_qty": 1,
  "order_price": 201000
}
Request Parameters
| Field | Type | Description | 
| order_qty | int | Updated quantity | 
| order_price | int | Updated price ( In paise ) | 
| trigger_price | int | Price at which the order should be triggered | 
| duration | int | Validity period of the order | 
| max_prate | int | Maximum price protection rate allowed for the order | 
Execution Type Requirements
| Execution Type | Modification Allowed | 
| STRATEGY_TYPE_LIMIT | order_price,order_qty | 
| STRATEGY_TYPE_IOC | order_price,order_qty | 
| STRATEGY_TYPE_ICEBERG | order_price,order_qty | 
| STRATEGY_TYPE_STOPLOSS | order_price,order_qty,trigger_price | 
Response Structure
{
    "message": "update request pushed"
}