On Modification of GTT order, is there a change in GTT Order ID?

Namaskara,

Modify GTT Order

Request Body

{
“type”: “MULTIPLE”,
“quantity”: 1,
“gtt_order_id”: “GTT-221130000253265”,
“rules”: [
{
“strategy”: “ENTRY”,
“trigger_type”: “BELOW”,
“trigger_price”: 2.57
},
{
“strategy”: “TARGET”,
“trigger_type”: “IMMEDIATE”,
“trigger_price”: 2.6
},
{
“strategy”: “STOPLOSS”,
“trigger_type”: “IMMEDIATE”,
“trigger_price”: 2.55
}
]
}

Response body:

{
“status”: “success”,
“data”: {
“gtt_order_ids”: [“GTT-CU25280200021013”]
},
“metadata”: {
“latency”: 74
}
}

The response body has a different GTT number…

My questions..

  1. If I have to modify only SL what to do ? Is that SINGLE or MULTIPLE Leg
  2. Does the GTT order Id changes on successful modification?

The ans to the above 2 questions take less than 5 seconds of effort. Please, i appreciate, if UPSTOX SW engineers can ans quickly.

Regards
Rathnadhar K V

They won’t bro. You will need to wait at least 2 days…

Namaskara,

Even if I get a reply after 2 days I am super lucky…

I normally give myself next life to get an Hi from UPSTOX… :grin:

If you observe, there is no difference between place_gtt_order and modify_gtt_order description or example.

Gtt can have 3 legs… : Order executed price, take profit and SL.

Each of them can be independently modified, till order gets filled.

After that only take profit, or SL can be modified.

I was expecting examples for each…but I think they simply copy pasted the place order example in modify gtt order. That is messy…

Regards
Rathnadhar K V