LOGIN ISSUE


  • Dear Admin,

    I am not able to login to smart api which i tried for the first time today,
    I am using below python code-

    from smartapi import SmartConnect

    obj=SmartConnect(api_key="api key"),
    data = obj.generateSession("Client id","mpin","TOTP code")
    refreshToken= data['data']['refreshToken']

    AttributeError: 'tuple' object has no attribute 'generateSession'

    please can anyone help me to log in.. i have already spend more than 8 hours today but failed to login.