Navigation

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

    coder

    @coder

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

    coder Follow

    Best posts made by coder

    This user hasn't posted anything yet.

    Latest posts made by coder

    • Response: {'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}

      CLIENT ID : R946011

      I am using the correct api_key and login credentials but getting following error:
      Response: {'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}

      When I run the following code:
      obj = SmartConnect(api_key= api_key)
      data = smartApi.generateSession(username, pwd, totp)
      refreshToken = data['data']['refreshToken']
      res = obj.getProfile(refreshToken)
      params = {
      "exchange": "NSE",
      "symboltoken": "99926000",
      "interval": "ONE_HOUR",
      "fromdate": "2023-09-06 11:15",
      "todate": "2023-09-06 12:00"
      }

      hist_data = obj.getCandleData(params);

      posted in Python SDK
      C
      coder
    • Response: {'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}

      Client Id : R946011
      Getting the following error on connection :
      Response: {'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}

      I am running the below code:
      params = {
      "exchange": "NSE",
      "symboltoken": "99926000",
      "interval": "ONE_HOUR",
      "fromdate": "2023-09-06 11:15",
      "todate": "2023-09-06 12:00"
      }

      hist_data = obj.getCandleData(params);

      posted in Python SDK
      C
      coder