I do not want to open the browser every time to copy the auth code. Is there any way, maybe using TOTP or something, using which I can automate the login process purely using code?
Regards.
I do not want to open the browser every time to copy the auth code. Is there any way, maybe using TOTP or something, using which I can automate the login process purely using code?
Regards.
You can pass the redirect URL to the generate-authcode url https://api-t1.fyers.in/api/v3/generate-authcode?client_id=123&redirect_uri=\[your get api url].
Redirect URL could be a get API, inside the API you will get the generated auth code using which you can get access token and store it.
That way you only have to open browser to login the fyers 1 time. If you want to completely skip opening browser then I am not sure if there is any way.