Excel->API : Error - invalid kite token

prashanth
Hi, I have created an excel where it triggers two functions, login and get position. the login is success. but when i try to trigger another function(get positions) it throws an error that kite token is invalid.
Below is python code for login and get position,

And From excel, here is vba

when i run the login, it is sucess but when i run the get positions, it throws an error that token is already used.

Can anyone please help?
  • srinidhihebbar
    Can you check if the access token is being generated? I guess the chrome driver is getting stuck at TOTP and there is no Access token being generated.
  • rakeshr
    As per the exchange regulation, it's recommended to login manually to generate access_token.
Sign In or Register to comment.