One has to log in manually to get a request token. It is mandatory by the exchange that a user has to manually login at least once a day. We don't recommend automating login.
Once you get an access token, save it and use it in the next run. You don't have to create this for every run.
Once you get an access token, save it and use it in the next run. You don't have to create this for every run.
https://sunilbrokerhedgealgo.blogspot.com/2019/10/how-to-generate-requesttoken-for.html