pnl and m2m are not getting updated in the kite.position api return

tushar42
Hi

For last coupe of days the pnl and m2m is not getting updated in the return data from kite.position api for all open positions.
pos=kite.positions()
posdata=pos[u'net']
df=pd.DataFrame(posdata)
total_pl=int(df['m2m'].sum())

It should return updated m2m and pnl every time the api call is made but the api call is sending back same pnl and m2m every time for all open position. Can you please check and suggest...

Emails to talk are not attended by Zerodha...

Tushar
98224-12177
  • sujith
    Hi @tushar42,
    We don't encourage polling positions API just to fetch latest P&L. You can check out this thread to know how to calculate P&L using live market data.

    Technical queries are not answered by compliance and payment teams (talk(at)rainmatter.com), hence it is more likely that you won't receive a reply from there for technical queries.
Sign In or Register to comment.