Im getting this issue while fetching data, pls anyone help
-
sws.connect()
File "d:\SmartAPI\SmartWebSocketV2.py", line 269, in connect
raise e
File "d:\SmartAPI\SmartWebSocketV2.py", line 263, in connect
self.wsapp = websocket.WebSocket(self.ROOT_URI, header=headers, on_open=self._on_open,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: WebSocket.init() got an unexpected keyword argument 'header' -
Kindly make sure if the latest python version is consumed.
Python - 1.4.8
Please verify on header argument passed on the code snippet.
Handling Type Error:
https://www.geeksforgeeks.org/handling-typeerror-exception-in-python/Regards,
SmartAPI team