Skip to main content

Get Long Short Ratio

HTTP Request

GET /v5/market/account-ratio

Request Parameters

ParameterRequiredTypeComments
categorytruestringProduct type. linear(USDT Perpetual),inverse
symboltruestringSymbol name, like BTCUSDT, uppercase only
periodtruestringData recording period. 5min, 15min, 30min, 1h, 4h, 1d
limitfalseintegerLimit for data size per page. [1, 500]. Default: 50

Response Parameters

ParameterTypeComments
listarrayObject
> symbolstringSymbol name
> buyRatiostringThe ratio of users with net long position
> sellRatiostringThe ratio of users with net short position
> timestampstringTimestamp (ms)

Request Example

GET /v5/market/account-ratio?category=linear&symbol=BTCUSDT&period=1d&limit=1 HTTP/1.1
Host: api-testnet.bybit.com

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"list": [
{
"symbol": "BTCUSDT",
"buyRatio": "0.5777",
"sellRatio": "0.4223",
"timestamp": "1695772800000"
}
]
},
"retExtInfo": {},
"time": 1695785131028
}