How to keep a python code running even if internet connection is lost in between.

vikesh_sethi
Hi,

I am very new to programming. In fact never coded anything before. Somehow I managed to code my strategy in python after learning some stuff over the internet. My strategy needs to generate ltp after some time gap using kite.ltp(" "). It works perfectly if my internet is working fine.

However in case of any internet connectivity issue code stops and sometimes there is data loss in between and orders may not get executed at right time.

So is there anyway to automate this stuff so that my code keeps on running even if there is connectivity issue.

Well this may be a very simple task but I am not able to find a proper solution for this problem as I am very new to programming.

Thanks
VS
Sign In or Register to comment.