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.
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.
If yes, then check out this thread.