Facing error while connecting to Websocket

I am trying to fetch live market depth through Aliceblue API but getting error in python stating
AttributeError: module ‘websocket’ has no attribute ‘WebSocketApp’. This is the error in below piece of code

alice.start_websocket(subscribe_callback=event_handler_quote_update,
socket_open_callback=open_callback,
run_in_background=True)

Try in live market time once and paste your whole code if it doesn’t work for debug (Keep user pass 2fa area blank.)

1 Like