Skip to main content

Public Trade

Get recent public trades data in Bybit.

info

After subscription, you will be pushed delta trade message in real-time once there is an order filled.

Push frequency: real-time

Topic: publicTrade.{symbol}

Response Parameters

ParameterTypeComments
topicstringTopic name
typestringMessage type. snapshot
tsnumberThe timestamp (ms) that system generates the data.
dataarrayObject
> TnumberThe timestamp (ms) that the order is filled
> sstringSymbol name
> SstringDirection of taker. Buy,Sell
> vstringqty
> pstringExecuted price
> LstringDirection of price change
> istringTrade id
> BTbooleanBlock trade or not

Request Example

{
"op": "subscribe",
"args": [
"publicTrade.BTCUSDT"
],
"req_id": "test" // optional
}

Response Example

{
"topic": "publicTrade.BTCUSDT",
"type": "snapshot",
"ts": 1671181689023,
"data": [
{
"T": 1671181689021,
"s": "BTCUSDT",
"S": "Buy",
"v": "0.002",
"p": "17032.50",
"L": "MinusTick",
"i": "d9cd8295-40dc-5dce-8deb-42882580a7ab",
"BT": false
}
]
}