Skip to main content

Get Public Trades

Get the recently executed rfq successfully. Up to 50 requests per second

HTTP Request

GET /v5/rfq/public-trades

Request Parameters

ParameterRequiredTypeComments
startTimefalseintegerThe timestamp (ms), startTime and endTime of the order transaction are 7 days
endTimefalseintegerThe closing timestamp (ms), startTime and endTime of the order are 7 days
limitfalseintegerReturn the number of items. [1, 100]. Default: 50
cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

Response Parameters

ParameterTypeComments
resultObject
> cursorstringRefer to the cursor request parameter
> listarrayAn array of RFQs
>> rfqIdstringInquiry ID
>> strategyTypestringPolicy type
>> createdAtstringTime (ms) when the trade is created in epoch, such as 1650380963
>> updatedAtstringTime (ms) when the trade is updated in epoch, such as 1650380964
>> legsarray of objectsCombination transaction
>>> categorystringcategory. Valid values include: linear, option and spot
>>> symbolstringThe unique instrument ID
>>> sidestringDirection, valid values are Buy and Sell
>>> pricestringExecution price
>>> qtystringNumber of executions
>>> markPricestringThe futures markPrice at the time of transaction, the spot is indexPrice, and the option is the markPrice of the underlying Price.

Request Example

GET /v5/rfq/public-trades HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1676430842094
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXXX

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"cursor": "page_token%3D14912%26last_time%3D1756826273947000000%26",
"list": [
{
"rfqId": "1756892210565322771637442724834278",
"strategyType": "custom",
"legs": [
{
"category": "spot",
"symbol": "BTCUSDT",
"side": "Sell",
"price": "100000",
"qty": "0.5",
"markPrice": "110320"
}
],
"createdAt": "1756892210567",
"updatedAt": "1756892215712"
},
{
"rfqId": "1756891080435210075162963643082323",
"strategyType": "custom",
"legs": [
{
"category": "linear",
"symbol": "BTCUSDT",
"side": "Buy",
"price": "143843.9",
"qty": "0.01",
"markPrice": "143843"
}
],
"createdAt": "1756891080437",
"updatedAt": "1756891081550"
},
{
"rfqId": "1756826272870633375460463539530377",
"strategyType": "custom",
"legs": [
{
"category": "linear",
"symbol": "BTCUSDT",
"side": "Buy",
"price": "107600.9",
"qty": "1",
"markPrice": "108481.73"
}
],
"createdAt": "1756826272871",
"updatedAt": "1756826273947"
}
]
},
"retExtInfo": {},
"time": 1756892357602
}