Trade record
Request format
trade@{symbol}
- Example:
trade@btc_usdt - Push rate: real‑time
Request example
Subscribe — After establishing the WebSocket connection, send the following JSON string.
SUBSCRIBE
{
"method": "SUBSCRIBE",
"params": ["trade@btc_usdt"],
"id": "test" // this param could call whatever you want
}
Response example
{
"topic": "trade",
"event": "trade@btc_usdt",
"data": {
"s": "btc_index", // symbol
"p": "50000", // price
"a": "0.1", // amount
"m": "BID", // side: BID = buy, ASK = sell
"t": 123124124 // timestamp
}
}