Navigation

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

    smartConnect:246

    Python SDK
    2
    2
    7
    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.
    • S
      S237783 last edited by S237783

      Subject: Issue with getLtpData API - Error Code: AG8001 (Invalid Token)
      Description: Hi Team,

      I am facing an issue while calling the getLtpData API. Despite having a valid session, the API returns an "Invalid Token" error. Below are the technical details of the error:

      API Endpoint: https://apiconnect.angelone.in/rest/secure/angelbroking/order/v1/getLtpData

      Error Code: AG8001

      Error Message: Invalid Token

      Client ID: [S237783]

      Request Payload: {'exchange': 'NSE', 'tradingsymbol': 'NIFTY 50', 'symboltoken': '99926000'}

      Timestamp of Error: 2026-01-12 13:07:14

      [E 260112 13:08:47 smartConnect:246] Error occurred while making a POST request to https://apiconnect.angelone.in/rest/secure/angelbroking/order/v1/getLtpData. Error: Invalid Token. URL: https://apiconnect.angelone.in/rest/secure/angelbroking/order/v1/getLtpData, Headers: {'Content-type': 'application/json', 'X-ClientLocalIP': '127.0.0.1', 'X-ClientPublicIP': '106.193.147.98', 'X-MACAddress': 'b8:97:5a:70:4a:fe', 'Accept': 'application/json', 'X-PrivateKey': '9prSs4Y1', 'X-UserType': 'USER', 'X-SourceID': 'WEB'}, Request: {'exchange': 'NSE', 'tradingsymbol': 'NIFTY 50', 'symboltoken': '99926000'}, Response: {'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}

      requesting to resolve thiss issue plz

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

        Hi @s237783

        Please do check are you using jwttoken generated via loginbypassword api

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