Access Token getting expired again and again

Walker
The access token keeps expiring repeatedly after running the code just once.
  • Sravanthi_bh
    You may refer to this thread for similar discussion
  • Walker
    Hey @Sravanthi_bh , you referred me to a thread regarding token expiration. From what I understood, the token is supposed to remain valid throughout the day. However, since I’m generating it during market hours, it keeps expiring again and again.
  • Sravanthi_bh
    An access token is valid for one whole day. Unless you log out and don't request for access token in every run. Once you have generated access_token, store it in a variable and keep using it for other API calls throughout(until performing logout or fresh login).
  • niftyalgo1402
    niftyalgo1402 edited June 9
    i'm too facing the same issue did you find the solution
    Using saved access token.
    Running live strategy...
    Checking: NFO:NIFTY2561225100CE
    Error: invalid token
  • Nivas
    @niftyalgo1402 You may refer to the similar discussion here.
  • Walker
    @niftyalgo1402 yes I did find the solution, the problem was in my code it was generating request token again n again
Sign In or Register to comment.