Exception in Getting OHLC data as single positional indexer is out-of-bounds

I have recently started learning about the Algo Trading in Dhan. I am in ealry session.

I am getting the follwing error when I run - Pre Market Sca
nner.py

py “Pre Market Sca
nner.py”
Codebase Version 2.1
-----Logged into Dhan----- reading existing file all_instrument 2025-04-25.csv
Got the instrument file
Exception in Getting OHLC data as single positional indexer is out-of-bounds
[0] :unamused:

Please help or refer to any link where this has already been solved

Hi @Dr_Suman_Kumar ,

Can you share the code which you are using currently?