Skip to main content

Public Trading History

Get recent public trading records in Bybit. You could download archived USDT contract trade records here.

HTTP Request

GET /derivatives/v3/public/recent-trade

Request Parameters

ParameterRequiredTypeComments
categoryfalsestringProduct type.linear,inverse,option
  • category not passed or =linear,inverse, then symbol is required
  • category=option, then symbol is optional
symbolfalsestringSymbol name
baseCoinfalsestringBase coin. Default: BTC. Valid only when category=option
optionTypefalsestringOption type. Call or Put. Valid only when category=option
limitfalseintegerLimit for data size per page. [1, 1000]. Default: 500

Response Parameters

ParameterTypeComments
categorystringProduct type
listarrayObject
> execIdstringExecution id
> symbolstringSymbol name
> pricestringTrade price
> sizestringTrade size
> sidestringSide of taker Buy, Sell
> timestringTrade time
> isBlockTradebooleanIs block trade
> mPstringMark price, unique field for option
> iPstringIndex price, unique field for option
> mIvstringMark iv, unique field for option
> ivstringiv, unique field for option

Request Example

GET /derivatives/v3/public/recent-trade?category=linear&symbol=BTCUSDT&limit=1 HTTP/1.1
Host: api.bybit.com

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"category": "linear",
"list": [
{
"execId": "5706445b-8543-59bc-8988-93e0f4a3f0f9",
"symbol": "BTCUSDT",
"price": "16814.50",
"size": "0.001",
"side": "Buy",
"time": "1671970297430",
"isBlockTrade": false
}
]
},
"retExtInfo": {},
"time": 1671970297723
}