there are too few documents on the Internet, so let"s ask the first question, Websocket Client of Python, how to subscribe to a specified channel?
I can"t find it all over Google. I see a lot of articles are written:
ws.send (json.dumps ({"event": "subscribe", "channel": "trades"})
I can"t figure it out. This is just a common way to send messages. What kind of subscription is it? A method like ws.subscribe (url) cannot be found at all.