Messages
{
"id": 8,
"method": "trades_request",
"params": [
"ETH_BTC",
100,
41358445
]
}{
"id": 9,
"method": "trades_subscribe",
"params": [
"ETH_BTC",
"BTC_USDT"
]
}No examples found{
"id": 8,
"result": [
{
"id": 41358530,
"time": 1580905394.70332,
"price": "0.020857",
"amount": "5.511",
"type": "sell"
}
],
"error": null
}{
"id": 123,
"result": {
"status": "<string>"
},
"error": null
}{
"id": null,
"method": "trades_update",
"params": [
"ETH_BTC",
[
{
"id": 41358530,
"time": 1580905394.70332,
"price": "0.020857",
"amount": "5.511",
"type": "sell"
}
]
]
}WebSocket API
Market Trades
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": 8,
"method": "trades_request",
"params": [
"ETH_BTC",
100,
41358445
]
}{
"id": 9,
"method": "trades_subscribe",
"params": [
"ETH_BTC",
"BTC_USDT"
]
}No examples found{
"id": 8,
"result": [
{
"id": 41358530,
"time": 1580905394.70332,
"price": "0.020857",
"amount": "5.511",
"type": "sell"
}
],
"error": null
}{
"id": 123,
"result": {
"status": "<string>"
},
"error": null
}{
"id": null,
"method": "trades_update",
"params": [
"ETH_BTC",
[
{
"id": 41358530,
"time": 1580905394.70332,
"price": "0.020857",
"amount": "5.511",
"type": "sell"
}
]
]
}Trades Query
type:object
Get recent trades for a market
Subscribe to Trades
type:object
Subscribe to real-time trade updates
Unsubscribe from Trades
type:object
Stop receiving trade updates
Trades Response
type:object
Array of recent trades
Subscribe Response
type:object
Subscription confirmation
Trades Update
type:object
Real-time trade updates
⌘I