Unsubscribe from Real-Time Candlestick (K-Line) Data
Cancel all or part of a candlestick subscription without closing the WebSocket.
Request frequency
Subscribe + unsubscribe + heartbeat on one connection: 60 per minute. See WebSocket Limitation.
Error codes
See WebSocket Error Codes. An invalid klineTypes value returns 506.
Address
See Endpoints.
Request (protocol 11002)
Drop 1-minute candles only and keep daily:
{
"code": 11002,
"trace": "423afec425004bd8a5e02e1ba5f9b2b0",
"data": {
"codes": "BTCUSDT",
"klineTypes": "1"
}
}Drop every interval for that symbol:
code
Integer
Yes
Unsubscribe protocol 11002
11002
trace
String
Yes
Trace id
423afec425004bd8a5e02e1ba5f9b2b0
data
JSON
No
Scope. Empty clears every kline symbol on this connection
codes
String
No
Comma-separated. Empty = every kline symbol on this connection
BTCUSDT
klineTypes
String
No
Comma-separated 1–12. Omit = drop every interval for those symbols
1,8
To drop one interval only, send klineTypes. Omitting it unsubscribes 1-minute through yearly.
Interval ids match subscribe: 1 1m … 8 day … 12 year.
Response (protocol 11010)
Trade, depth, and kline unsubscribes all ack with 11010.
Last updated
