It looks like you're new here. If you want to get involved, click one of these buttons!
It is not recommended to poll positions for updated P&L. You need to calculate that at your end using this formula:-pnl = (sellValue - buyValue) + (netQuantity * lastPrice * multiplier);
is it okay to use the "last_price" that we get from kite.positions() to calculate PnL ?