i used below formula to get live PnL but its giving same result of pnl field. live PnL on app is something else. is there anything additional needs to be added?
positions_json = kite.positions()
pnl = 0 for obj in positions_json["net"]: pnl = pnl + obj["pnl"] print("pnl is:", pnl)