Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. SCCT1015
    3. Posts
    S
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    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)

      posted in General Discussion
      S
      SCCT1015
    • RE: TOTP

      your account is bloked and active your account totp is generated api login esyly

      posted in General Discussion
      S
      SCCT1015
    • not login api Couldn't parse the JSON response received from the server: b''

      how to rectify this problem help![0_1665127205458_photo_2022-10-07_12-49-49.jpg](Uploading 100%)

      posted in Bugs
      S
      SCCT1015
    • 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)

      posted in Bugs
      S
      SCCT1015