I have observed many times today and often in the last few days the Zerodha APIs are not updating the with the latest price when we poll it, It will continue to show the same price for many seconds when market is going up and suddenly it will show a big loss and you will exit with a loss. I see this often happening. Somebody tell me what is the solution for this?
if old data is still being got for many seconds, it is not a logic issue it is mostly the specific server from which your getting the latest stock data, that server could be hanging due to server issue or data from exchange could be delayed or some connectivity issue with exchange,etc due to which API gets old data.
your APIs is getting old data for almost several seconds. I suggest your Servers are overloaded.
Please check this.