Have used the below code as you mentioned. However even now there is a change pnl of what is show in the kite web and what is shown in the code. Every thing was working fine until OCT 11.
exit = 0
while exit == 0:
positions = kite.positions()
…
position['pnl'] was working until OCT11. Fine. I'm using the below python code now
for position in positions :
pnl = (position['sell_value'] - position['buy_value']) + (position['quantity'] * position['last_price'] * position['multiplier']…
I used this code pnl = (position['sell_value'] - position['buy_value']) + (position['quantity'] * position['last_price'] * position['multiplier'])
Even then since yesterday pnl is showing wrong information.
There is nothing called net_quantity.
Ca…