Open sriayyan opened 3 years ago
Friend, At some time, we are also facing the errors below. C:\xampp\htdocs\flask-intro\sdoosa-algo-trade-python-master\src>python main.py 2020-12-22 20:50:24: serverConfig => {'port': 5000, 'enableSSL': False, 'sslPort': 8443} 2020-12-22 20:50:24: userConfig => {'clientID': 'MG4332', 'apiKey': 'hcdi8tyn1i01dnqe', 'apiSecret': 'nmkabafrwt7zylg5a0q9ehyi4gkaj6s8', 'redirectUrl': 'http://localhost:5000/apis/broker/login/zerodha'}
api_key
or access_token
.
Hi Friend, We are beginners to Python and Flask. We are tiring to execute your code. We are facing some technical problems. Please help us to resolve it. Please refer to the error. 2020-12-22 20:40:55: Detected change in 'C:\xampp\htdocs\flask-intro\sdoosa-algo-trade-python-master\src\zerodha.py', reloading 2020-12-22 20:40:55: Restarting with stat 2020-12-22 20:40:58: serverConfig => {'port': 5000, 'enableSSL': False, 'sslPort': 8443} 2020-12-22 20:40:58: userConfig => {'clientID': 'MG4332', 'apiKey': 'hcdi8tyn1i01dnqe', 'apiSecret': 'nmkabafrwt7zylg5a0q9ehyi4gkaj6s8', 'redirectUrl': 'http://localhost:5000/apis/broker/login/zerodha'} 2020-12-22 20:40:58: Debugger is active! 2020-12-22 20:40:58: Debugger PIN: 120-108-093 2020-12-22 20:40:58: Running on http://localhost:5000/ (Press CTRL+C to quit) 2020-12-22 20:41:06: 127.0.0.1 - - [22/Dec/2020 20:41:06] "←[37mGET /?algoStarted=true HTTP/1.1←[0m" 200 - 2020-12-22 20:41:35: 127.0.0.1 - - [22/Dec/2020 20:41:35] "←[37mGET /?algoStarted=true HTTP/1.1←[0m" 200 - 2020-12-22 20:41:53: Algo started... 2020-12-22 20:41:53: Going to fetch instruments... 2020-12-22 20:41:53: Sending redirect url http://127.0.0.1:5000?algoStarted=true in response 2020-12-22 20:41:53: 127.0.0.1 - - [22/Dec/2020 20:41:53] "←[37mPOST /apis/algo/start HTTP/1.1←[0m" 200 - Exception in thread Thread-6: Traceback (most recent call last): File "C:\Program Files\Python36\lib\threading.py", line 916, in _bootstrap_inner self.run() File "C:\Program Files\Python36\lib\threading.py", line 864, in run self._target(self._args, **self._kwargs) File "C:\xampp\htdocs\flask-intro\sdoosa-algo-trade-python-master\src\algo.py", line 15, in startAlgo fetchInstruments(kite) File "C:\xampp\htdocs\flask-intro\sdoosa-algo-trade-python-master\src\instruments.py", line 17, in fetchInstruments instrumentsList = kite.instruments('NSE') AttributeError: 'NoneType' object has no attribute 'instruments'
2020-12-22 20:41:53: 127.0.0.1 - - [22/Dec/2020 20:41:53] "←[37mGET /?algoStarted=true HTTP/1.1←[0m" 200 -