Retrieves recent trade data. Data is pushed whenever trades occur.
Channel name: trade
The trade channel streams recent executions for a specific SPOT instrument. It is useful for trade tapes, market activity displays, and systems that need to react to new public trades as they occur.
Subscription Request
{
"op": "subscribe",
"args": [
{
"instType": "SPOT",
"channel": "trade",
"instId": "BTCUSDT"
}
]
}Push Data Format
{
"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"
}
]
}Field Descriptions
| Field | Type | Description |
|---|---|---|
| ts | String | Trade timestamp, in milliseconds |
| price | String | Trade price |
| size | String | Trade quantity |
| side | String | Buy/sell direction: buy/sell |
| tradeId | String | Trade ID |