跳至主要内容

查詢多空比

HTTP請求

GET /v5/market/account-ratio

請求參數

參數是否必需類型說明
categorytruestring產品類型. linear(僅USDT永續),inverse
symboltruestring合約名稱
periodtruestring數據週期. 5min, 15min, 30min, 1h, 4h, 1d
startTimefalsestring開始時間戳 (毫秒)
endTimefalsestring結束時間戳 (毫秒)
limitfalseinteger每頁數量限制. [1, 500]. 默認: 50
cursorfalsestring游標,用於分頁

響應參數

參數類型說明
listarrayObject
> symbolstring合約名稱
> buyRatiostring持有多倉比例
> sellRatiostring持有空倉的比例
> timestampstring時間戳 (毫秒)
nextPageCursorstring游標,用於分頁

請求示例

GET /v5/market/account-ratio?category=linear&symbol=BTCUSDT&period=1h&limit=2&startTime=1696089600000&endTime=1696262400000 HTTP/1.1
Host: api-testnet.bybit.com

響應示例

{
"retCode": 0,
"retMsg": "OK",
"result": {
"list": [
{
"symbol": "BTCUSDT",
"buyRatio": "0.49",
"sellRatio": "0.51",
"timestamp": "1696262400000"
},
{
"symbol": "BTCUSDT",
"buyRatio": "0.4927",
"sellRatio": "0.5073",
"timestamp": "1696258800000"
}
],
"nextPageCursor": "lastid%3D0%26lasttime%3D1696258800"
},
"retExtInfo": {},
"time": 1731567491688
}