Hey Muthu, I had answered previously but using python code, Can you please check.
https://community.fyers.in/question/i-m-getting-an-issue-while-logging-on-fyers-api-because-of-totp-login-syste--6343e0ee338021c4644815e8?answerId=6343ec3e57efd47bfc72684f52
Question
FYERS API I am using fyers newly via java. Need help in generating auth code systematically. Everyday it is asking pin for first time to generate code as a result unable to automate it via program. Suggestion needed for systematic generation to avoid manual auth code generation. Using this end point: https://api.fyers.in/api/v2/generate-authcode?client_id=OF0YF9F6VX-100&redirect_uri=http://127.0.0.1:5000/&response_type=code&state=sample_state
I am using fyers newly via java. Need help in generating auth code systematically. Everyday it is asking pin for first time to generate code as a result unable to automate it via program. Suggestion needed for systematic generation to avoid manual auth code generation. Using this end point: https://api.fyers.in/api/v2/generate-authcode?client_id=OF0YF9F6VX-100&redirect_uri=http://127.0.0.1:5000/&response_type=code&state=sample_state
Join FYERS Community to pick others' brains on Trading/Investing