Skip to main content

Get Premium Index Price Kline

Query for historical premium index klines. Charts are returned in groups based on the requested interval.

Covers: USDT and USDC perpetual

HTTP Request

GET /v5/market/premium-index-price-kline

Request Parameters

ParameterRequiredTypeComments
categoryfalsestringProduct type. linear
symboltruestringSymbol name, like BTCUSDT, uppercase only
intervaltruestringKline interval
startfalseintegerThe start timestamp (ms)
endfalseintegerThe end timestamp (ms)
limitfalseintegerLimit for data size per page. [1, 1000]. Default: 200

Response Parameters

ParameterTypeComments
categorystringProduct type
symbolstringSymbol name
listarray
  • An string array of individual candle
  • Sort in reverse by start
> list[0]stringStart time of the candle (ms)
> list[1]stringOpen price
> list[2]stringHighest price
> list[3]stringLowest price
> list[4]stringClose price. Is the last traded price when the candle is not closed

Request Example

GET /v5/market/premium-index-price-kline?category=linear&symbol=BTCUSDT&interval=D&start=1652112000000&end=1652544000000 HTTP/1.1
Host: api-testnet.bybit.com

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"symbol": "BTCUSDT",
"category": "linear",
"list": [
[
"1652486400000",
"-0.000587",
"-0.000344",
"-0.000480",
"-0.000344"
],
[
"1652400000000",
"-0.000989",
"-0.000561",
"-0.000587",
"-0.000587"
]
]
},
"retExtInfo": {},
"time": 1672765216291
}