I’m new to fyers API, I installed API through pip install fyers-apiv2 and going through the documentation but I’m getting an error : ModuleNotFoundError: No module named ‘fyers_api.Websocket’
when I tried from fyers_api.websocket import ws then it is working but I’m getting an error in the custom message function
pong received
Exception is custom_message() missing 1 required positional argument: ‘msg’
Hi Ajay can you let me know your python version(python --version)
and your SDK version (output of pip list)
and code you are using to try to connect to websocket
to let me replicate the enviroment
I have been trying to replicate the error but not able to few things you can try
if you are using pyenv make sure the python version set by pyenv and your IDE are running on same version(specially if you run your code with run button rather than ‘python file.py or python3 file.py’).
upgrade pip(pip install --upgrade pip) try uninstalling and reinstalling fyers-apiv2(pip uninstall fyers-apiv2,pip install fyers-apiv2) should install v2.0.5 by default.
Meanwhile I will try to find if there is other reason causing this