binance-connector-python
binance-connector-python copied to clipboard
The wrong path for the `import` WebSocket module in the documentation
Issue subject
The documentation gives the wrong path for the import
WebSocket module:
- https://binance-connector.readthedocs.io/en/latest/getting_started.html#websocket
- https://github.com/search?q=repo%3Abinance%2Fbinance-connector-python+binance.websocket.spot.websocket_client&type=code
from binance.websocket.spot.websocket_client import SpotWebsocketClient
There is no spot.websocket_client
and SpotWebsocketClient
.
Expected behaviour
Update the doc.
Actual behaviour
Error ModuleNotFoundError: No module named 'binance.websocket.spot.websocket_client'
.
Steps to reproduce
Copy the code example to Python and run.
Environment
Provide any relevant information about your setup, such as:
- binance-connector 3.8.0
- Python 3.11
- Ubuntu 24.04