Skip to content

Description

Get the public trade data

Request Parameters

ParameterTypeRequiredDescription
opStringYesOperation, subscribe unsubscribe
argsList<Object>Yesop list
> symbolStringYesProduct ID e.g: ETHUSDT
> chStringYesChannel, trade

request example:

json
{
    "op":"subscribe",
    "args":[
        {
            "symbol":"BTCUSDT",
            "ch":"trade"  
        }
    ]
}

Push Parameters

ParameterTypeDescription
chStringChannel, trade
symbolStringSymbol: ETHUSDT
tsStringTime stamp
dataList<Object>Data
> pStringFilled price
> vStringFilled amount
> sStringFilled side, sell/buy
> tStringTime stamp

push data:

json
{ 
  "ch": "trade",                   
  "symbol": "BNBUSDT",
  "ts": 1732178884994,
  "data": [
        {
            "t": "2024-12-04T11:36:47.959908526Z",   
            "p": "27000.5",         
            "v": "0.001",           
            "s": "buy"             
        },
        {
            "t": "2024-12-04T11:36:47.959908526Z",
            "p": "27000.0",
            "v": "0.001",
            "s": "sell"
        }
    ]
}