How to run python Code for entry exit

I created an App to create a execute a code for auto entry exit strategy, but after all connection done login url, access token etc, final strategy code made for nifty option is not executing properly as no data feed from API, no live and also no historical also. how to resolve it ?