Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    ERROR AG8001 / invalid token

    Python SDK
    0
    3
    15
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      PKM96 last edited by

      getting error while using the url

      https://apiconnect.angelone.in/rest/secure/angelbroking/marketData/v1/nseIntraday

      and

      https://apiconnect.angelone.in/rest/secure/angelbroking/marketData/v1/bseIntraday

      to get the data in nse and bse

      output :

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

      A 1 Reply Last reply Reply Quote 0
      • A
        admin last edited by

        @PKM96 You would need to pass your JWT token.

        1 Reply Last reply Reply Quote 0
        • A
          Anshumanjaiswal @PKM96 last edited by

          @PKM96 I think when Angel returns JWT token it has "bearer " word and even smart connect library appending it again. For me it worked after stripping it from received session response

          1 Reply Last reply Reply Quote 0
          • First post
            Last post