WebSocket · Public

Trades Channel

Latest public trades, pushed on every trade.

Public channelPush frequency: real-time (per trade)
WSSwss://stream-api.koinsayang.com/v2/ws/public
Channeltrade
instTypeSPOT

Subscribe request

JSON
{
"op": "subscribe",
"args": [
{
"instType": "SPOT",
"channel": "trade",
"instId": "BTCUSDT"
}
]
}

Push data format

JSON
{
"action": "snapshot",
"arg": {
"instType": "SPOT",
"channel": "trade",
"instId": "BTCUSDT"
},
"data": [
{
"ts": "1768981361893",
"price": "89236.3",
"size": "0.00036",
"side": "buy",
"tradeId": "1397774630114324481"
},
{
"ts": "1768981351576",
"price": "89235.4",
"size": "0.00035",
"side": "sell",
"tradeId": "1397774586841690113"
}
]
}

Fields

FieldTypeDescription
tsStringTrade time (ms)
priceStringTrade price
sizeStringTrade size
sideStringSide: buy / sell
tradeIdStringTrade ID