Federico Marchese
Federico Marchese

Reputation: 219

Opening a websocket connection in R to Binance

I can't find a way to make a websocket connection in R.

It seems as if all of the libraries for websockets in R are depreciated.

Has anyone found a way to make a websocket connection to Binance?

https://www.binance.com/restapipub.html#kline-wss-endpoint

Upvotes: 1

Views: 1023

Answers (1)

Jeff
Jeff

Reputation: 9

Try this

library(websocket)

websocket::WebSocket$new("wss://stream.binance.com:9443/ws/bctusdt@trade")

See https://github.com/rstudio/websocket for more

Upvotes: 0

Related Questions