Messages
{
"id": 2,
"method": "candles_request",
"params": [
"ETH_BTC",
1659569940,
1660894800,
3600
]
}{
"id": 3,
"method": "candles_subscribe",
"params": [
"BTC_USD",
900
]
}{
"id": 4,
"method": "candles_unsubscribe",
"params": []
}{
"id": 2,
"result": [
[
1580860800,
"0.020543",
"0.020553",
"0.020614",
"0.02054",
"7342.597",
"151.095481849",
"ETH_BTC"
]
],
"error": null
}{
"id": 3,
"result": {
"status": "success"
},
"error": null
}{
"id": null,
"method": "candles_update",
"params": [
[
1580895000,
"0.020683",
"0.020683",
"0.020683",
"0.020666",
"504.701",
"10.433600491",
"ETH_BTC"
]
]
}WebSocket API
Kline
WSS
/
ws
Documentation Index
Fetch the complete documentation index at: https://whitebit-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Messages
{
"id": 2,
"method": "candles_request",
"params": [
"ETH_BTC",
1659569940,
1660894800,
3600
]
}{
"id": 3,
"method": "candles_subscribe",
"params": [
"BTC_USD",
900
]
}{
"id": 4,
"method": "candles_unsubscribe",
"params": []
}{
"id": 2,
"result": [
[
1580860800,
"0.020543",
"0.020553",
"0.020614",
"0.02054",
"7342.597",
"151.095481849",
"ETH_BTC"
]
],
"error": null
}{
"id": 3,
"result": {
"status": "success"
},
"error": null
}{
"id": null,
"method": "candles_update",
"params": [
[
1580895000,
"0.020683",
"0.020683",
"0.020683",
"0.020666",
"504.701",
"10.433600491",
"ETH_BTC"
]
]
}Candlestick Query
type:object
Request historical candlestick data for a market pair
Subscribe to Candlesticks
type:object
Subscribe to periodic candlestick updates
Unsubscribe from Candlesticks
type:object
Stop receiving candlestick updates
Candlestick Response
type:object
Array of historical candlestick data
Subscribe Response
type:object
Subscription confirmation
Candlestick Update
type:object
Periodic candlestick update (every 0.5 seconds)
⌘I