API exit request not executed fully

UDX753
Hi

On Dec 24, I had an intra day options trade running with 2 legs (23750CE sell and 23850buy) active as the day began.

An hour later, to be more precise, at 10.17.44, my API which was running in the background, identified that Stop loss had reached and initiated through the Zerodha api to exit both the legs. Zerodha did not act on it, and few fraction of seconds later exited only 23850buy.

Can anyone advise why at 10.17am 23750CE was not exited? Why 23850CE alone got exited?

Attached is the log of the sequence of events.

Note: Post 10.18, I manually exited the legs. Beyond 10.18 what happened manually I am clear.
  • sujith
    We don't see any request sent for the strike 23750CE at 10:17 AM. It might have timed out at your end.
    You may enable debug logs on pykiteconnect for more detailed logs and try on an alternate network.

    If you are doing a retry on failure then make sure you fetch orderbook and confirm that the order entry is not there and then only retry. Retry on a read request is fine but retry on a write requests like place order or modify order might be disastrous.
Sign In or Register to comment.