FYERS API LOGIN ISSUE WITH TOTP VERIFICATION

Hello

I am seeing following issue while trying to log into fyers systems using api. Getting error code -1063 while verifying totp. Could someone please help resolve this asap ?

Getting a new fyers access token!

send_login_otp success

generate_totp success

verify_totp_result failure - {“s”: “error”, “code”: -1063, “otp_retries”: 0, “failed_attempts”: 3, “user_blocked”: false, “message”: “invalid totp, 2 attempts left”}

Hey @ET5vU0j39U

Please try using this code:

https://github.com/FyersDev/fyers-api-sample-code/blob/sample_v3/v3/python/login/auto_login_totp.py

Hey Abhishek,

I have been using this exact piece of code for a while now. It was only today that I tried to run it (after a gap of 1 week), that I am seeing this issue. It seems that TOTP is getting generated successfully but its verification is failing with error message saying “INVALID TOTP”.

Do I need to regenerate my TOTP by any chance ? Or is there something else that I need to do ?

Please help.

Hey @ET5vU0j39U

There must be a change done in the pin of you’re account or the totp , please regenerate the totp and check it .

Ok. got it. How do i regenerate TOTP ? First disable it and then re enable it ?

I am getting the same message and I have regenerated TOTP but still same