Calculating / Monitoring - PnL of trades in Real Time

tahseen
Dear Team,

Am trying to monitor my net PnL for which I use kite.positions() and then loop and sum all by using individual stock ["pnl"] key's value.

But I see there is a lag in the total PnL compared to the PnL I seen on Kite Website. Is there a better way to do this ?
Tagged:
This discussion has been closed.