Modify GTT Order
This API allows you to modify the price, trigger price or quantity of a pending GTT order.
USE CASE
Move your target or stop-loss after placing a GTT order, without cancelling it and placing a new one.
Details
- This allows the user to modify pending GTT orders. Users can provide parameters which need to be modified. In case a particular parameter has not been provided, the original value will be considered.
- Send the order
idandorderInfo.leg1is mandatory for every modification, andleg2is required if the order is an OCO. - Only the price, trigger price and quantity of each leg can be updated. The request has no field for symbol, side or product type.
- For an OCO order, the
leg1trigger price must stay above LTP and theleg2trigger price must stay below LTP. - Response code
1102means the order was modified. Code201means it is in transit, so confirm it in the GTT Order Book. - Rate limits differ between the Standard and Prime plans. See Plans & rate limits.
Request Attributes
| Attribute | Data Type | Description |
|---|---|---|
id* | string | Unique identifier for the order to be modified, e.g., "25010700000001". |
orderInfo* | object | Contains updated information about the GTT/OCO order legs. |
orderInfo.leg1* | object | Details for GTT order leg. Mandatory for all modifications. |
orderInfo.leg1.price* | float | Updated price at which the order should be placed. |
orderInfo.leg1.triggerPrice* | float | Updated trigger price for the GTT order. NOTE: for OCO order this leg trigger price should be always above LTP. |
orderInfo.leg1.qty* | int | Updated quantity for the GTT order leg. |
orderInfo.leg2* | object | Details for OCO order leg. Required if the order is an OCO type. |
orderInfo.leg2.price* | float | Updated price for the second leg of the OCO order. |
orderInfo.leg2.triggerPrice* | float |
|
orderInfo.leg2.qty* | int | Updated quantity for the second leg of the OCO order. |
Response Attributes
| Attribute | Data Type | Description |
|---|---|---|
s | string | ok / error |
code | int |
|
message | string |
|
id | string | Unique identifier for the modified order, returned if the modification is successful. |
Last updated on