I'm getting Error DH-904, Can you explain how many times i can get data from Dhan?

Exception in Getting OHLC data as {‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘DH-904’, ‘error_type’: ‘Rate_Limit’, ‘error_message’: ‘Too many requests on server from single user breaching rate limits. Try throttling API calls.’}, ‘data’: {‘errorType’: ‘Rate_Limit’, ‘errorCode’: ‘DH-904’, ‘errorMessage’: ‘Too many requests on server from single user breaching rate limits. Try throttling API calls.’}}

I have used 0.4 second lapse in code

time.sleep(0.4)

Hi @Nitesh_Ambaliya

Do check the solution link : Learn Algo Trading with Python | Codes | Youtube Series - #1330 by Tradehull_Imran

now we don’t need to pass sleep in main code, its managed in codebase itself.

Also, please post the questions in below thread, its easier to tack question there