Navigation

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

    smrtsaravanan

    @smrtsaravanan

    0
    Reputation
    5
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    smrtsaravanan Unfollow Follow

    Latest posts made by smrtsaravanan

    • option OI data for Nifty and Banknifty

      Kindly let us know if we could fetch option OI data for Nifty and Banknifty options. If yes please provide any documentation which is available

      posted in General Discussion
      S
      smrtsaravanan
    • RE: Guide to secure your SmartAPI Account with two factor authentication

      @smrtsaravanan it is working fine now. Ignore it.

      I have made a couple of changes. 1st I have declared it like below

      obj=SmartConnect(api_key=apikey)
      totp = pyotp.TOTP(s='yourkey')
      print("pyotp",totp.now())
      attempts = 5
      while attempts > 0:
      attempts = attempts-1
      data = obj.generateSession(username, pwd, totp.now())
      print(data)
      if data['status']:
      break
      tt.sleep(2)

      and entered my new API key.

      Hope it helps!

      posted in General Discussion
      S
      smrtsaravanan
    • RE: Guide to secure your SmartAPI Account with two factor authentication

      @admin Hi admin, when I try to validate totp i got below error.
      refreshToken= data['data']['refreshToken']
      TypeError: 'NoneType' object is not subscriptable

      posted in General Discussion
      S
      smrtsaravanan
    • RE: Guide to secure your SmartAPI Account with two factor authentication

      @ravindra-e TypeError: 'NoneType' object is not subscriptable error came

      posted in General Discussion
      S
      smrtsaravanan