I have written a python code to take positions and it took the positions properly. It is supposed to exit the positions at 15:20 and while my code has the position at Banknifty 40300PE, the actual executed position was 40200PE which is a disaster. This is the first time this happened and I made no changes to code. This is very very concerning considering the seriousness of my trades.
Please give me a proper explanation. I am ready to share my code