[Questions] About Access Token and Caching of data

gaurav_ch
Hi,

This is for Development Team.

Great work guys. Kudos.

Q1) Is it possible for Access Token never to expire?

Q2) When I use new KiteConnect()->getPositions() in PHP, if I fetch every 15 seconds, I am getting cached results. Is this behaviour expected? I should get the current data.
  • sujith
    Hi @gaurav_ch,
    Q1) Is it possible for Access Token never to expire?
    It is mandatory by the exchange that a trader has to log in at least once in a day. Hence all the access tokens are flushed every morning at around 7:30 AM.
    Q2) When I use new KiteConnect()->getPositions() in PHP, if I fetch every 15 seconds, I am getting cached results. Is this behaviour expected? I should get the current data.
    Polling positions is not a good practice. What are you looking for P&L?
    If yes, then check out this thread.
  • gaurav_ch
    @sujith thanks for the thread. It worked for me.
This discussion has been closed.