your account is bloked and active your account totp is generated api login esyly
SCCT1015
@SCCT1015
Best posts made by SCCT1015
-
RE: TOTP
Latest posts made by SCCT1015
-
RE: Unable to login to 'Enable TOTP' page | Account blocked
your account is blocked then ative to your account then try
login procees is esy after this code is ueful for u apiKey="yyyyyyy"
qrOtp = "xxxxxxxx"
totp = pyotp.TOTP(qrOtp)
totp = totp.now()smartapiObj =SmartConnect(apiKey)
data = smartapiObj.generateSession(client_code,client_pass,totp)
print(data) -
RE: TOTP
your account is bloked and active your account totp is generated api login esyly
-
not login api Couldn't parse the JSON response received from the server: b''
how to rectify this problem help
-
RE: generateSession issue with new TOPO API : Couldn't parse the JSON response received from the server: b
@daleep_angel said in generateSession issue with new TOPO API : Couldn't parse the JSON response received from the server: b:
Got solution as below.
Install pyopt library : pip install pyotp
import pyotp
use the topo detail with pyotp as below:
topo = Trading_api_key_details.topo
topt = pyotp.TOTP(topo)
topt = topt.now()
data = obj.generateSession(username,pwd,topt)
refreshToken= data['data']['refreshToken']
print(data)