ERROR no 806 : NOT GETTING LTP DATA

i try to recieve LTP from EXCEL

but i got error

   *** While Loop Strated ***  2025-04-30 14:49:17.788712

Exception at calling ltp as {‘status’: ‘failure’, ‘remarks’: {‘error_code’: None, ‘error_type’: None, ‘error_message’: None}, ‘data’: {‘data’: {‘806’: ‘Data APIs not Subscribed’}, ‘status’: ‘failed’}}
Traceback (most recent call last):
File “hello.py”, line 41, in
LTP = ltp_for_all_scripts[name]

Please resolve

@Tradehull_Imran @RahulDeshpande

Hi @Sunny_Shah ,

Seems like you have not subscribed for data API.

Follow below steps to Subscribe for Data API:

  1. Go to Profile Section
  2. Select “Dhan HQ Trading API”
  3. Switch to Data API tab
  4. Click Subscribe
  5. Revoke the access token and try
    Once you have active subscription you will be able to fetch historical and live data.