Navigation

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

    anuranaich

    @anuranaich

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

    anuranaich Follow

    Best posts made by anuranaich

    This user hasn't posted anything yet.

    Latest posts made by anuranaich

    • RE: ltpdata

      Login to get session token

      try:
      data = smartapi.generateSession(client_id, pwd, totp_code)
      refresh_token = data['data']['refreshToken']
      access_token = data['data']['jwtToken']
      feed_token = smartapi.getfeedToken()
      print("Login Successful. Access Token:", access_token)

      except Exception as e:
      print("Login Failed:", e)

      stock_symbol_token_NIFTY = '99926000' # NIFTY token for NSE
      exchange_NIFTY = 'NSE'
      trading_symbol_NIFTY = 'NIFTY'

      stock_data_NIFTY = smartapi.ltpData(exchange_NIFTY, trading_symbol_NIFTY, stock_symbol_token_NIFTY)

      print(stock_data_NIFTY['data']['ltp'])

      posted in Python SDK
      A
      anuranaich
    • DataException: Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate'

      I am getting the below error.. I have seen the topic related to RateLimit (https://smartapi.angelbroking.com/docs/RateLimit)... I tried to keep the request within the limit but still I am getting the error....

      DataException: Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate'

      posted in Python SDK
      A
      anuranaich