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
Parameter | Type | Comments |
---|---|---|
topic | string | Topic name |
type | string | Message type. snapshot |
ts | number | The timestamp (ms) that system generates the data. |
data | array | Object |
> T | number | The timestamp (ms) that the order is filled |
> s | string | Symbol name |
> S | string | Direction of taker. Buy ,Sell |
> v | string | qty |
> p | string | Executed price |
> L | string | Direction of price change |
> i | string | Trade id |
> BT | boolean | Block 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
}
]
}