**URGENT** GTT Order Cancel APi does not return any response sometimes

Hi there,
My user id is : 68ACEW

These are few GTT Order IDs which are not cancelling: GTT-C25040600041806, GTT-C25040600043692, GTT-C25040600041803

I am trying to cancel it through API. but API is returning empty response. I have creating 30+ GTT orders using loop for different instruments and then cancelling them by iterating each. Sometimes major time getting empty response but if I rerun script it will cancel some of the orders and process repeats same.

@MohitGolecha @Samit @Sachin_Khodpia @Ketan @Pradeep_Jaiswar

Anyone interested to answer this?

@Jagdish_j_ptl The orders corresponding to the provided orderIds are already cancelled. Could you please share the orderId that you’re unable to cancel?

Can you please read the question properly? It is being cancelled calling upon multiple times. I’ve called APIs atleast 5 times to cancel orders. And this is being repeated every time. You do one thing create 30 GTT orders using API for 30 scripts. And then cancel it using loop. You will see issue in API. I am creating GTT orders for more than 30 scripts and at the time of cancelling them I need to reiterate loop 5 to 10 times to cancel all orders. It deletes 5 to 6 orders and then start giving empty response and then suddenly start deleting others then again stop giving response.

Why you guys are tooo slow in replying? Hire me to give replies to your users so that their issues can get resolved quickly.

Hi @Jagdish_j_ptl, The team has identified the issue and is currently working on a fix. I’ll keep this thread updated once it’s resolved.

Thank you for your patience

Thank you for the update. Please fix it quickly as I have already gone live and also please implement API to cancel multiple GTT orders

@Jagdish_j_ptl The issue has been resolved!

I’ve shared your feedback regarding the cancellation of multiple GTT orders with the concerned team. Thank you!

Also add API to get all GTT orders list also with filters like instrument_token, symbol, order_id, as currently we need to store gtt id for each order. If we lost all gtt order ids then there is no option to retrieve from Upstox. We need to manually cancel all orders and it is very hectic.

1 Like