Reputation: 219
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
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