Skip to main content

Trade Channel

Get the public trade data

Request Parameters

ParameterTypeRequiredDescription
opstringYesOperation, subscribe unsubscribe
argslistYesList of channels to request subscription
> instTypestringYesProduct type
> channelstringYesChannel name
> instIdstringYesProduct ID E.g. BTCUSDT

Request Example

{
"op": "subscribe",
"args": [
{
"instType": "USDT-FUTURES",
"channel": "trade",
"instId": "BTCUSDT"
}
]
}

Response Parameters

ParameterTypeDescription
eventstringEvent
argobjectSubscribed channels
> instTypestringProduct type
> channelstringChannel name
> instIdstringProduct ID E.g. BTCUSDT
codestringError code
msgstringError message

Response Example

{
"event": "subscribe",
"arg": {
"instType": "USDT-FUTURES",
"channel": "trade",
"instId": "BTCUSDT"
}
}

Push Parameters

ParameterTypeDescription
actionstringPush data action
argobjectChannels with successful subscription
> instTypestringProduct type
> channelstringChannel name
> instIdstringProduct ID E.g. BTCUSDT
datalistSubscription data
> pricestringFilled price
> sizestringFilled amount
> sidestringFilled side, SELL / BUY
> tsnumberFill time

Push Data

{
"action": "snapshot",
"arg": {
"instType": "USDT-FUTURES",
"channel": "ticker",
"instId": "BTCUSDT"
},
"data": [
{
"price": "27000.5",
"size": "0.001",
"side": "BUY",
"ts": 1695716760565
},
{
"price": "27000.0",
"size": "0.001",
"side": "SELL",
"ts": 1695716759514
}
],
"ts": 1695716761589
}