Trade Channel

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

FieldTypeDescription
tsStringTrade timestamp, in milliseconds
priceStringTrade price
sizeStringTrade quantity
sideStringBuy/sell direction: buy/sell
tradeIdStringTrade ID