Navigation

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

    thiyagaraaj

    @thiyagaraaj

    1
    Reputation
    10
    Posts
    1
    Profile views
    0
    Followers
    1
    Following
    Joined Last Online

    thiyagaraaj Follow

    Best posts made by thiyagaraaj

    This user hasn't posted anything yet.

    Latest posts made by thiyagaraaj

    • Re-use token not working for smartconnect.

      Re-use token not working for smartconnect.

      I am saving the tokens in my database during first login but when i try to re-use the token next time it is not working. I tried the following:
      obj.setRefreshToken(<previously fetched refresh token>)
      obj.setFeedToken(<previously fetched feed token>)
      obj.setAccessToken(<previously fetched JWT token>)

      still i get error as invalid token.
      Previous blogs have broken links and no proper information. Kindly respond. thanks!

      posted in Python SDK
      T
      thiyagaraaj
    • RE: How do I reuse the refreshtoken without having to generate it throughout the day whenever I want to use the API?

      @admin this link is not working: https://github.com/angelbroking-github/smartapi-python . I really dont know why your links are not working. blogs are really not helping with such broken link,

      posted in Python SDK
      T
      thiyagaraaj
    • RE: what is Bearer AUTHORIZATION_TOKEN

      @admin this link does not work. many links that you posted already here is not working.

      posted in Python SDK
      T
      thiyagaraaj
    • RE: what is Bearer AUTHORIZATION_TOKEN

      @viksh112 this link is not working

      posted in Python SDK
      T
      thiyagaraaj
    • RE: Margin calculation in SmartAPI

      @laxm no, the only solution is to go for paid service in zerodha . Angelone smartapi is worst, when we post some questions the so called moderators don't even approve it.

      posted in General Discussion
      T
      thiyagaraaj
    • RE: Margin calculation in SmartAPI

      @admin It's been a year. Is this feature added already now?

      posted in General Discussion
      T
      thiyagaraaj
    • This is to Moderator/Admin

      Hi Admin or Moderators,

      I have been facing an issue with my python script and thought of getting help from this forum. So few days before I have raised a question in this forum 2-3 times but it was not approved by you guys.

      See, the reason I have started demat account with angel brokerage is for having the api for my algo trading. If not, I would have stayed with my zerodha itself. If you guys are so worse by even not approving the questions posted by the users, I seriously need to escalate this to angelone higher authorities. This is not going to be a right support forum if you guys are doing like this.

      posted in Bugs
      T
      thiyagaraaj
    • TypeError: 'module' object is not callable

      Hello,

      I am getting this error :
      Traceback (most recent call last):

      data = obj.generateSession("S50905755", "<4 digit pin>", pyotp.totp("FPDMSKC4MIXXXXXXXXX3PA"))
      TypeError: 'module' object is not callable

      My client id is S50905755

      Kindly let me know if there is any solution for this

      posted in Python SDK
      T
      thiyagaraaj
    • TypeError: 'module' object is not callable

      Hello,

      I am getting this type error: TypeError: 'module' object is not callable at this line:
      data = obj.generateSession("S50905755", "<4 Digit Pin>", pyotp.totp("XXXXXXXX"))

      Any idea how to resolve this?

      My client id is S50905755. Please help!

      regards
      Thiyagu

      posted in Bugs
      T
      thiyagaraaj
    • TypeError: 'module' object is not callable

      Hello Experts,

      I am starting with smartapi today. I am encountering the an error : TypeError: 'module' object is not callable.

      Here is my code:

      from smartapi import SmartConnect
      import pyotp

      Create an instance of SmartConnect

      obj = SmartConnect(api_key="<Api key>")

      Generate session token

      data = obj.generateSession("S50905755", "<Pin number>", pyotp.totp("XXXXXXXXX"))

      Fetch refresh token

      refreshtoken = data['data']['refreshToken']

      Fetch feed token

      feedtoken = obj.getfeedToken()
      print(feedtoken)

      when i execute this, i get the below error:

      Traceback (most recent call last):
      File "C:/Users/thiyagu/PycharmProjects/pythonProject/stockmarket/angelone.py", line 9, in <module>
      data = obj.generateSession("S50905755", "<pin number>", pyotp.totp("XXXXXXXX"))
      TypeError: 'module' object is not callable

      Any help on this please?

      posted in Bugs
      T
      thiyagaraaj