Navigation

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

    Topics created by daleep_angel

    • D

      generateSession issue with new TOPO API : Couldn't parse the JSON response received from the server: b
      General Discussion • • daleep_angel  

      2
      0
      Votes
      2
      Posts
      44
      Views

      D

      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)
    • D

      generateSession issue with new TOPO API : Couldn't parse the JSON response received from the server: b
      Bugs • • daleep_angel  

      3
      0
      Votes
      3
      Posts
      44
      Views

      S

      @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)