Exceptions occurring almost everyday when executing code in python

Pavan_Teja
I'm getting a couple of exceptions almost everyday:

1.requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.kite.trade', port=443): Max retries exceeded with url: /quote/ohlc?i=NFO%3ABANKNIFTY22MAY34600PE (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed')) - THIS IS OCCURRING WHEN SCRIPT IS EXECUTED BUT AFTER FEW MINUTES/HOURS, THIS EXECPTION IS GETTING TRIGGERED. THERE IS NO CLARITY ON HOW AND AT WHAT POINT TIME IT GETS TRIGGERED
2.kiteconnect.exceptions.NetworkException: Too many requests - THIS OCCURS WHEN THERE ARE MULTIPLE SCRIPTS RUNNING AT THE SAME TIME. AGAIN, THIS DOESN'T OCCUR EVERYTIME. SOMETIMES ALL OF THE SCRIPTS GET EXECUTED. SOMETIMES ONLY FEW GET EXECUTED AND SOMETIMES ALL OF THEM FAIL.

Please help me as the whole point of trading using coding is completely failing

Thanks in advance
Pavan
Sign In or Register to comment.