Positions data do not update

Ram
Ram edited January 2021 in Python client
Hi,
I am trying to refresh my positions every 15 seconds.
But I get the same data each time unless otherwise an order is executed.
I use the following code

while True:
positions = kite.positions()
time.sleep(15)
# Do something with positions data

Thanks
Ram
  • rakeshr
    @Ram
    This thread explains your query.
  • Ram
    Ok.
    So the only way forward it seems is to use either websocket or quotes and calculate pnl at my end from the positions data. Is this the right way?
  • sujith
    Yes, you are right. You can use fetch Postions to check the m2m position but for the p&l value, you can calculate using getQuote resposne.
Sign In or Register to comment.