API Reference

WS v2/ Trade

Get the push for trade data.

Reminder

The subscription to this WebSocket will not immediately push data; it will only push trade data when subsequent transaction events occur.


Request Parameters


PARAMETERTYPEReq'dExampleDESCRIPTION
topicSTRINGYtradeTopic for "trade" data push
eventSTRINGYsubSubscribe ("sub") or Unsubscribe ("cancel")
paramsDICTIONARYY-Request Parameters
> symbolSTRINGY-Trading Pairs see [Get] Get Exchange Info

Request Demo

{
    "topic":"trade",
    "event":"sub",
    "params":{
        "symbol": "ETHUSDT"
    }
}

WS Push Content


PARAMETERTYPEExampleDESCRIPTION
topicSTRINGtradeTopic for "trade" data push
paramsDICTIONARY-Request Parameters
> symbolSTRING-Trading Pairs see [Get] Get Exchange Info
dataDICTIONARY-WS Push Contenet Data
> vSTRING4683743612482899969Transaction record ID
> tLONG1730100239050Data Time (milisecond)
> pSTRING (decimal)1804.1Traded price
> qSTRING (decimal)0.001Traded quantity
> mBOOLEANtrueIs the buyer maker?

true: buyer is the maker
false: buyer is the taker

WS Push Demo

{
    "topic": "trade",
    "params": {
        "symbol": "ETHUSDT"
    },
    "data": {
        "v": "4683743612482899969",
        "t": 1730100239050,
        "p": "1804.1",
        "q": "0.001",
        "m": true
    }
}