Help Needed: kite.positions() Not Updating Live in Intraday — Anyone Know the Refresh Frequency?

smarty
Hi everyone,

I’m using the Zerodha Kite Connect API (free Version) in a live intraday setup and running into an issue. I'm calling:
positions = kite.positions()

But the output doesn’t seem to reflect real-time changes during live trading — the response appears to remain the same across multiple calls.

Has anyone experienced this?
is there a known refresh interval or cache delay involved?

I’d appreciate any insights or suggestions. Just trying to figure out the most reliable way to track my live positions and MTM.

Thanks in advance! ????
  • yogeshs
    Hi
    I have seen this behaviour with positions, this is also applicable to holdings.
    You might need depend on the websocket or /quote api to get the latest prices.
  • smarty
    Yes, that workaround helps for now, but this has been a persistent issue for quite some time. The Kite team should address it.
  • yogeshs
    I think even kite web application is dependent on the web socket to get the latest prices. So we also have to follow same.
    Observe that when you hard refresh web page in kite, it shows some different prices for a moment and then latest prices are shown (websocket does that)
  • sujith
    Positions API will not provide the live market data. We suggest using Quote API or Websockets API to fetch the live market data and calculate P&L at your end.
  • smarty
    Thanks everyone for the info! I'm now using WebSocket for live PnL updates.
    Just a quick question — when I execute an order, can I rely on the positions API to reflect:
    • Entry/Exit status
    • Quantity details
    Does it update immediately, or should I expect a slight delay similar to pnl?
  • yogeshs
    I have experienced that, you don't see recently executed orders in positions or orders api immediately. I added 5 seconds delay and it worked for me.
  • Sravanthi_bh
    We haven't observed any delay in fetching positions. The Positions API returns updated position details instantly.
    @yogeshs
    Is it happening consistently or intermittently?
    Do you happen to observe this during opening or throughout the day? An exact log will help to debug this further.
  • yogeshs
    This only happened once or twice in a day, after entering into the position. Anyways, I am good by adding a delay before checking the position.
Sign In or Register to comment.