AsyncAPI channel · KuCoin
· KuCoin Public WebSocket API
/
Single multiplexed WebSocket connection. All KuCoin streaming traffic
flows over one connection; topics are subscribed/unsubscribed via JSON
control messages and inbound messages are routed by their `topic` and
`subject` fields.
Topic: `/spotMarket/level2Depth5:{symbol}` — pushed at most once every 100ms.
Content-Type:
level2Depth50
Topic: `/spotMarket/level2Depth50:{symbol}` — pushed at most once every 100ms.
Content-Type:
klines
Topic: `/market/candles:{symbol}_{type}` — real-time OHLCV updates. Type is one of 1min,3min,15min,30min,1hour,2hour,4hour,6hour,8hour,12hour,1day,1week.
Topic: `/margin/position` — debt ratio and position status updates. Requires private token.
Content-Type:
isolatedMarginPosition
Topic: `/margin/isolatedPosition:{symbol}` — isolated margin position changes. Requires private token.
Content-Type:
About AsyncAPI
The AsyncAPI specification describes event-driven APIs the way OpenAPI describes request/response APIs. A channel is the named pipe — a webhook URL, a Kafka topic, a WebSocket route, an MQTT subject — that producers and consumers publish or subscribe to. Each channel carries one or more messages with structured payloads, and an operation declares whether a given party sends or receives on that channel.