{
"channel": "trades",
"data": [
{
"coin": "<string>",
"px": "<string>",
"sz": "<string>",
"time": 123
}
]
}Live Data WebSocket API
trades
Trades of one coin: snapshot of recent trades, then live trades
Subscribe with
{"method":"subscribe","subscription":{"type":"trades","coin":"BTC"}} (coin required: without it the server answers {"type":"error","message":"trades requires 'coin' parameter"}). Acknowledgement uses subscriptionResponse; a snapshot of recent trades (isSnapshot: true) is sent first, then events match TradesUpdate. Each trade carries users: the buyer and the seller.