Skip to main content

Trade Stream

Subscribe to real-time trade records for a specified trading pair.

  • Channel Format: trade@{symbol}
  • Push Frequency: Real-time, unthrottled
  • Access: Public

Subscribe Request

{
"op": "subscribe",
"args": ["trade@BTC_USDT"]
}

Unsubscribe

{
"op": "unsubscribe",
"args": ["trade@BTC_USDT"]
}

Push Example

{
"ch": "trade@BTC_USDT",
"d": {
"id": 123456789,
"idx": 0,
"s": "BTC_USDT",
"p": "49000.50",
"q": "0.01",
"qq": "490.005",
"ts": 1,
"t": 1768205315166
}
}

Push Fields

FieldTypeDescription
idnumberMatch ID
idxnumberTrade index within the same match
sstringTrading pair
pstringTrade price
qstringTrade quantity
qqstringTrade amount
tsnumberTaker side: 1=buy, 2=sell
tnumberTrade time (milliseconds)