@azkhan Uninstalled and re-installed smartapi python package. There is progress now. it is opening websocket connection and showing response. I need stock price information.. how can I get price? Please advise.
Below is the output of same code. It is showing actual client code correctly , but to show here I changed it to "my client code"
before connect
__on_open################
{'task': 'cn', 'channel': 'NONLM', 'token': 'token number', 'user': 'my client id', 'acctid': 'my client id'}
2021-07-15 13:51:05.092349 : Start task in the background
{'task': 'hb', 'channel': '', 'token': 'token number', 'user': 'my client id', 'acctid': 'my client id'}
2021-07-15 13:51:21.833013 : Start task in the background
{'task': 'hb', 'channel': '', 'token': 'token number', 'user': 'my client id', 'acctid': 'my client id'}
HeartBeat Sending Failed
2021-07-15 13:51:29.792444 : Start task in the background
{'task': 'hb', 'channel': '', 'token': 'token number', 'user': 'my client id', 'acctid': 'my client id'}
HeartBeat Sending Failed
2021-07-15 13:51:35.124963 : Start task in the background
{'task': 'hb', 'channel': '', 'token': 'token number', 'user': 'my client id', 'acctid': 'my client id'}
2021-07-15 13:51:51.841917 : Start task in the background
{'task': 'hb', 'channel': '', 'token': 'token number', 'user': 'my client id', 'acctid': 'my client id'}
HeartBeat Sending Failed
2021-07-15 13:51:59.822315 : Start task in the background
{'task': 'hb', 'channel': '', 'token': 'token number', 'user': 'my client id', 'acctid': 'my client id'}
HeartBeat Sending Failed