Hello @Tradehull_Imran
Today i ran a script using dhan-tradehull which worked perfectly and downloaded the data i requested, but when i ran second similar script, data was not downloading, i tried to figure out what was wrong and found an error called ‘remarks’: ‘error_code’: ‘DH-901’, ‘error_type’: ‘Invalid_Authentication’, i do not understand why this is happening and this same thing also happened two days before, it feels like dhan is blocking me temporarily from getting the data, but i don’t understand why? please help, if anybody knows.
Probably your access token has expired! 
Check the current one’s status and get a new one from web interface. 
i have tried to generate new access token i did not work, i have tried api key and totp authentication, it also didn’t work. i even logged out and logged back in and created new access token, but no use
Hi @Ravitheja_thaduri ,
Do update the codebase version to latest version and you can use TOTP authentication, in which the access token will be generated for the day and will be stored. Refer the below thread -
Dhan_Tradehull Library Update: Python 3.12 & Authentication Improvements - APIs, Automation, Algos & Code - MadeForTrade