Navigation

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

    S237783

    @S237783

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

    S237783 Unfollow Follow

    Latest posts made by S237783

    • smartConnect:246

      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

      posted in Python SDK
      S
      S237783