Delay in position api

tukkan
I was referring to this discussion for delay on position pi https://kite.trade/forum/discussion/3166/getposition-is-not-having-updated-value. I am able to calculate realtime pnl using this formula pnl = (sellValue - buyValue) + (netQuantity * lastPrice * multiplier);
One question - if the stoploss for any position hit, it will take 5-10 mins to reflect on position api. So will it calculate wrong pnl for that small period of 5-10 mins or if a stoploss is triggered, it will reflect immediately in the position api?
This discussion has been closed.