I tried using the Binance API to get a stream of price data for some small altcoins like SKY or RVN.
When I send this message; “wss://fstream.binance.com/ws/btcusdt@miniTicke” the data comes back perfectly.
However when I send this, “wss://stream.binance.com:9443/ws/btcusdt@miniTicker” it doesn’t even connect.
Anyone knows why? I can provide the source code bellow if that helps.
I appreciate any help, thanks.
Source Code: https://pastebin.com/4GE2a6bd
(I am using C# (WebSocketSharp) )
Hi, your source code is no longer available to view, although I don’t have issues on my side:
aisling ~websocat -v 'wss://stream.binance.com:9443/ws/btcusdt@miniTicker'
[INFO websocat::lints] Auto-inserting the line mode
[INFO websocat::ws_client_peer] get_ws_client_peer
[INFO websocat::ws_client_peer] Connected to ws
{"e":"24hrMiniTicker","E":1616094522944,"s":"BTCUSDT","c":"58378.65000000","o":"57650.33000000","h":"60129.97000000","l":"57329.44000000","v":"72085.59724900","q":"4226302487.48718788"}
{"e":"24hrMiniTicker","E":1616094523957,"s":"BTCUSDT","c":"58386.89000000","o":"57651.00000000","h":"60129.97000000","l":"57329.44000000","v":"72084.40154200","q":"4226233807.07994830"}
What’s the response when you try to connect?