binance-connector-python icon indicating copy to clipboard operation
binance-connector-python copied to clipboard

The wrong path for the `import` WebSocket module in the documentation

Open vladiscripts opened this issue 7 months ago • 0 comments

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

vladiscripts avatar Jul 13 '24 15:07 vladiscripts