Refresh token generation

Tusharpatil232
Hi Zerodha Team, I have subscribed kite connect app and I am using kiteconnect java client. I am not getting refresh token after generating the session. I want to regenerate access token. After generating session I am getting the null value of refresh token. The access token is valid for one day only but I want do continuous trading for 4-5 days or more. To do this web socket (Kite ticker) should be run continuously, for this I need to generate a session for a long time. You have provided this on kite connect API doc as, refresh_token A token for getting long standing read permissions. This is only available to certain approved platforms string What is exactly means "available to the certain approved platform"? Is there any option to generate session for a long time? Kindly let me know, How can I get refresh token and renew access token? Thanks and Regards Tushar Patil
  • rakeshr
    @Tusharpatil232
    You can go through this doc to understand the process of generating access_token.
    Is there any option to generate session for a long time?
    No, as per exchange regulation, you need to log manually every trading day.
    Access token are flushed every day at 7:30 AM and new one is generated every day at 7:35AM.So, make sure you generate access token post 7:35 AM on the trading day.
    How can I get refresh token and renew access token?
    Access_token is valid for a day, so after generating access_token once in a day, you can use this for all API request throughout the day.
  • Nikhil.A
    @Tusharpatil232 The refresh token is given to platforms like smallcase. These are exchange-approved platforms that serve retail clients on a large scale. Since you're consuming the APIs for personal use, you'll have to log in manually every day.
This discussion has been closed.