historical data

Unable to pull historical data for some stocks despite correct symbol

My code -

stock = "ARSHIYA"
range_start = "2023-08-10"
range_end = "2023-12-10"
data = {"symbol":f"NSE:{stock}-EQ","resolution":"D","date_format":"1",
            "range_from": range_start ,"range_to": range_end ,"cont_flag":"1"}
res = fyers.history(data)

output -

{'code': -300, 'message': 'Invalid symbol provided', 's': 'error'}

Hi @abha.2hpxgrev
If you are using v2 then please use v3 and let me know if you are still facing issue

Hi @Z4PBvkQGyF

I am using the fyers_apiv3 module of python sdk

Hi @abha.2hpxgrev

You are using wrong symbol name. Correct symbol name is NSE:ARSHIYA-BE
Try with it and let me know.