So I have been testing an idea using Python. And once the Entry order was triggered, in the span of 1 sec both SL and TGT orders were placed as per my trade logs in the program. But when I check Zerodha's orderbook, the TGT order was placed fine, but there was a delay of around 33 mins for the SL order to be placed. I am currently testing with 1 qty of each stock shortlisted, but in case of bigger capital, the losses would be huge if SL order is not placed in time.
This has happened multiple times. Why is this happening and how to avoid this?