zerodha / pykiteconnect

The official Python client library for the Kite Connect trading APIs
MIT License
996 stars 473 forks source link

WebSocket Sample Code Issue #185

Closed ImAbhishekTomar closed 1 year ago

ImAbhishekTomar commented 1 year ago

This code sample is not working. https://github.com/zerodha/pykiteconnect/blob/master/examples/threaded_ticker.py

INFO:root:This is main thread. Will change webosocket mode every 5 seconds.
Exception in thread Thread-30 (run):
Traceback (most recent call last):
  File "/Users/abhishektomar/anaconda3/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/Users/abhishektomar/anaconda3/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/abhishektomar/anaconda3/lib/python3.11/site-packages/twisted/internet/base.py", line 1317, in run
    self.startRunning(installSignalHandlers=installSignalHandlers)
  File "/Users/abhishektomar/anaconda3/lib/python3.11/site-packages/twisted/internet/base.py", line 1299, in startRunning
    ReactorBase.startRunning(cast(ReactorBase, self))
  File "/Users/abhishektomar/anaconda3/lib/python3.11/site-packages/twisted/internet/base.py", line 843, in startRunning
    raise error.ReactorNotRestartable()
twisted.internet.error.ReactorNotRestartable
ImAbhishekTomar commented 1 year ago

Dose anyone help here...

ranjanrak commented 1 year ago

Please refer to the Python websocket FAQs in the KiteConnect forum here. Feel free to post all your kiteconnect queries on the forum for further assistance.