on-internet
← Community

kucoin websocket API, how to "subscribe" to their public channel, they say no authorization required, but they ask for a token :(

Stack Overflow ·

The question is about kucoin websocket public channel (not trades) just last trades. I just want a live feed of trades like other crypto exchanges, but when I want to connect to "wss://ws-api-futures.kucoin.com/endpoint" I get: WebSocketError: Received unexpected status code (401 Unauthorized) the documentation https://docs.kucoin.com/futures/#create-connection lack explanations :( Normally with other exchanges I can just do this in JavaScript: bybit_market_ws = new WebSocket("wss://stream.bybit.com/spot/quote/ws/v2"); bybit_market_ws.onmessage = event => bybit_trades(event.data); bybit_market

Comments

Sign in or sign up to comment and upvote.

No comments yet.