Skip to main content

Trade

Subscribe to the public trades stream.

After subscription, you will be pushed trade messages in real-time.

Push frequency: real-time

Topic:
publicTrade.{symbol}

Response Parameters

ParameterTypeComments
topicstringTopic name
typestringData type. snapshot
tsnumberThe timestamp (ms) that the system generates the data
dataarrayObject. Sorted by the time the trade was matched in ascending order
> TnumberThe timestamp (ms) that the order is filled
> sstringSymbol name
> SstringSide of taker. Buy,Sell
> vstringTrade size
> pstringTrade price
> LstringDirection of price change
> istringTrade ID

Subscribe Example

{
"op": "subscribe",
"id": "test-001-perp",
"args": [
"publicTrade.SOLUSDT_SOL/USDT"
]
}

Response Example

{
"topic": "publicTrade.SOLUSDT_SOL/USDT",
"ts": 1744170142723,
"type": "snapshot",
"data": [
{
"T": 1744170142720,
"s": "SOLUSDT_SOL/USDT",
"S": "Sell",
"v": "2.5",
"p": "19.3928",
"L": "MinusTick",
"i": "31d0fc58-933b-57b3-8378-f73da06da843"
}
]
}