GTT apis are good but it might be having a minor bug?

Placing a GTT order is fine but when I modify IMMEDIATE and the price for entry it FAILED and give the below issue shown in the screenshot, ENTRY should accept ABOVE, BELOW and IMMEDIATE.

Placing a GTT order
{“type”:“MULTIPLE”,“quantity”:100,“product”:“D”,“instrument_token”:“NSE_EQ|INE040A01034”,“transaction_type”:“BUY”,“rules”:[{“strategy”:“ENTRY”,“trigger_type”:“BELOW”,“trigger_price”:7.0},{“strategy”:“TARGET”,“trigger_type”:“IMMEDIATE”,“trigger_price”:50.0},{“strategy”:“STOPLOSS”,“trigger_type”:“IMMEDIATE”,“trigger_price”:3.0}]}
{“status”:“success”,“data”:{“gtt_order_ids”:[“GTT-C25020300002856”]},“metadata”:{“latency”:39}}

Modifying a GTT order
{“type”:“MULTIPLE”,“quantity”:100,“gtt_order_id”:“GTT-C25020300002856”,“rules”:[{“strategy”:“ENTRY”,“trigger_type”:“IMMEDIATE”,“trigger_price”:1700.0},{“strategy”:“TARGET”,“trigger_type”:“IMMEDIATE”,“trigger_price”:1750.0},{“strategy”:“STOPLOSS”,“trigger_type”:“IMMEDIATE”,“trigger_price”:1650.0}]}
{“status”:“success”,“data”:{“gtt_order_ids”:[“GTT-C25020300002856”]},“metadata”:{“latency”:36}}

More like a GUI bug, it does some validation and cancels the GTT order ?
Because it was success in the backend.

Hi @athma_prathisti
Entry orders accept all trigger types: ABOVE, BELOW, and IMMEDIATE.

However, placing an IMMEDIATE trigger type for an Entry order, after market is not permitted, which is why this order failed. If the same action had been performed during market hours, the issue would not have occurred, and the order would have been successfully modified.

We have informed this matter to the relevant team for further review.
Thank you!

Hi @Ketan

Thanks for the update, I think i can manage with above or below.

1 Like

So what will happen if we have placed immediate order and condition didn’t matched at the end of day. Will gtt order still be valid on next day? If it will be valid then why we need to place order in market hours only?