Skip to main content

Open Interest

Get open interest of each symbol in Bybit

info
  • Returns single side data
  • The upper limit time you can query is the launch time of the symbol.

HTTP Request

GET /derivatives/v3/public/open-interest

Request Parameters

ParameterRequiredTypeComments
categoryfalsestringProduct type. linear,inverse. Default: linear, but in the response category shows ""
symboltruestringSymbol name
intervaltruestringInterval. 5min 15min 30min 1h 4h 1d
startTimefalseintegerThe start timestamp (ms)
endTimefalseintegerThe end timestamp (ms)
limitfalseintegerLimit for data size per page. [1, 200]. Default: 50
cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

Response Parameters

ParameterTypeComments
symbolstringSymbol name
categorystringProduct type. Keeps empty string "" when category is not passed
listarrayObject
> openIntereststringOpen interest
> timestampstringThe timestamp (ms)
nextPageCursorstringThe cursor used to pagination

Request Example

GET /derivatives/v3/public/open-interest?category=linear&symbol=ETHUSDT&interval=5min&limit=2 HTTP/1.1
Host: api.bybit.com

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"symbol": "ETHUSDT",
"category": "linear",
"list": [
{
"openInterest": "411496.22000000",
"timestamp": "1677832800000"
},
{
"openInterest": "411484.61000000",
"timestamp": "1677832500000"
}
],
"nextPageCursor": "lastid%3D44487872"
},
"retExtInfo": {},
"time": 1677832955976
}