Server-Sent Events
One live channel as text/event-stream. The frames are the WebSocket’s; the SSE event name
is the frame type (snapshot, trade, retract, candle, …), so listen with
addEventListener(type, …). SSE frames carry no id. A comment line every 15 s keeps the
connection open. Bad parameters (an unknown channel included) answer 400 JSON before the
stream starts; while the server is at capacity, a new stream answers 503 (server_busy,
Retry-After: 30), and streams already open keep running. Opening a stream counts as one
request against the rate limit. On token, an error event (the token cannot be read) ends
the stream: close the EventSource, or it reconnects to the same error.
type, so EventSource.onmessage does not fire: listen with addEventListener("snapshot", …), addEventListener("trade", …) and so on. See the SSE guide.Path Parameters
Query Parameters
Response
An event stream
The response is of type string.