Python-binance trading bot

Hello first of all thanks the forum for the help i learn many thinks about the python from the conversation here and i have already do one bot. I have start and one second and i have a problem because python 3.11 have take out catalogs about async. if someone knows about it please to tell me or i will install oldest version python to fix this issue.
Thanks in advance

THE CODE:

async with stream as receiver:
    data = await receiver.recv()
    data = json.loads(data)['data']
    print(data)

THE ERROR

Output exceeds the size limit. Open the full output data in a text editor
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[29], line 1
----> 1 async with stream as receiver:
      2     data = await receiver.recv()
      3     data = json.loads(data)['data']

File c:\Users\Antonio alien\AppData\Local\Programs\Python\Python311\Lib\site-packages\websockets\legacy\client.py:604, in Connect.__aenter__(self)
    603 async def __aenter__(self) -> WebSocketClientProtocol:
--> 604     return await self

File c:\Users\Antonio alien\AppData\Local\Programs\Python\Python311\Lib\site-packages\websockets\legacy\client.py:622, in Connect.__await_impl__(self)
    620 async def __await_impl__(self) -> WebSocketClientProtocol:
    621     for redirects in range(self.MAX_REDIRECTS_ALLOWED):
--> 622         transport, protocol = await self._create_connection()
    623         # https://github.com/python/typeshed/pull/2756
    624         transport = cast(asyncio.Transport, transport)

File c:\Users\Antonio alien\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py:1106, in BaseEventLoop.create_connection(self, protocol_factory, host, port, ssl, family, proto, flags, sock, local_addr, server_hostname, ssl_handshake_timeout, ssl_shutdown_timeout, happy_eyeballs_delay, interleave)
   1096     if sock.type != socket.SOCK_STREAM:
   1097         # We allow AF_INET, AF_INET6, AF_UNIX as long as they
   1098         # are SOCK_STREAM.
   (...)
   1101         # Disallowing AF_UNIX in this method, breaks backwards
   1102         # compatibility.
...
    160 # Subclasses implement the opening handshake and, on success, execute
    161 # :meth:`connection_open` to change the state to OPEN.
    162 self.state = State.CONNECTING

TypeError: Lock.__init__() got an unexpected keyword argument 'loop'