Skip to content
Advertisement

Tag: websocket

How To Subscribe To Websocket API Channel Using Python?

I’m trying to subscribe to the Bitfinex.com websocket API public channel BTCUSD. Here’s the code: I believe ws.send(“BTCUSD”) is what subscribes to the public channel? I get a message back I think is confirming the subscription ({“event”:”info”,”version”:1}, but I don’t get the stream of data afterward. What am I missing? Update: Here’s the code that finally worked. Answer The documentation

Advertisement