-1

I trying to import the Binance library :

from binance.streams import ThreadedWebscocketManager

and received this error:

Message=cannot import name 'ThreadedWebscocketManager' from 'binance.streams'

Does anyone have a fix for this error?

Alessandro Togni
  • 680
  • 1
  • 9
  • 24
AlexiBoxi
  • 13
  • 1

1 Answers1

1

ThreadedWebsocketManager is not part of websockets streams module it can be imported directly from binance:

from binance import ThreadedWebsocketManager

Refer the documentation

darth baba
  • 1,277
  • 5
  • 13