Modify Cover Order
This API allows you to modify an existing Cover Order that is pending in the order book.
🛣️Path parameters
| Fields | Type | Required | Description | Example/Enum |
|---|---|---|---|---|
| Exchange | string | yes | Exchange segments | NSE_EQ |
| order_id | string | yes | Order ID (URL encoded format) | NWSYF00006>3 |
📦Request Body Schema
| Fields | Type | Required | Description | Example/Enum |
|---|---|---|---|---|
| main leg | object | yes | Main order details | See below table |
| stoploss leg | object | yes | Stop loss order detais | See below table |
📘Main Leg Object Fields
| Fields | Type | Required | Description | Example/Enum |
|---|---|---|---|---|
| order_type | string | yes | Order Types (only RL-MKT allowed) | RL-MKT  |
| quantity | object | yes | Total quantity to transact | 100 |
| traded quantity | object | yes | Quantity already traded (get from order book) | 40 |
| price | number | Yes | Price must be 0 for RL-MKT type orders | 0 |
📘Stoploss Leg Fields
| Fields | Type | Required | Description | Example/Enum |
|---|---|---|---|---|
| Legs | array(object) | yes | Array of stop-loss leg orders. | See below table |
📘Inside Stop-loss legs array:
| Fields | Type | Required | Description | Example/Enum |
|---|---|---|---|---|
| quantity | integer | No | Quantity presetnt (current ignored in the system) | 100 |
| price | number | Conditional | Price at which SL should execute. Required for "SL" type only | 1478.00 |
| trigger_price | number | Yes | Trigger price that activates the stop-loss leg | 1480.00 |
🟢Success Response - 200 Ok
| Fields | Type | Description | Example/Enum |
|---|---|---|---|
| status | string | Indicates the result of API Call | "success" |
| code | string | Response code corresponding to the request | "s-101" |
| message | string | Descriptive message for the response | "Success Message" |
🔴 Error Response - 400 Bad Request
| Field | Type | Description | Example |
|---|---|---|---|
| status | string | Status of the API call Default Error | "error" |
| code | string | Error code indicating the failure | "e-101" |
| message | string | Specific message explaining the reason for failed request. | "Error Message" |
put
/transactional/v1/orders/cover/{exchange}/{order_id}