Hi, I am trying to login using my account’s api key and TOTP method. Here is the error object ( login_object returned from thefirstock.firstock_login() function.
Code I am using:
totp_key = ‘SOME_TOTP_KEY’
authkey = pyotp.TOTP(totp_key)
authkey = authkey.now()
login = thefirstock.firstock_login(
userId='MYID',
password='SOME_PASSWORD',
TOTP=str(authkey),
vendorCode='MY_VENDOR_CODE',
apiKey='MYAPIKEY',
)
print(login)
I was able to do login on friday. Ofcourse, i have checked the vendor code, totp key, api key, etc are totally valid and correct. I am passing right input (String, TOTP key etc) .
I ran same code with different API key on a different firstock account, that works completely fine. So, as far as my code is concerned, I think there is no error there parsing strings etc.
Regards