Skip to main content

Kline

info

It only returns the results from latest 1000 candles regardless of what interval is specified

info

If startTime and endTime are not specified, only the latest candles will be sent

HTTP Request

GET /spot/v3/public/quote/kline

Request Parameters

ParameterRequiredTypeComments
symboltruestringName of the trading pair
intervaltruestringChart interval
limitfalseintegerLimit for data size. [1, 1000]. Default: 1000
startTimefalseintegerStart time (ms)
endTimefalseintegerEnd time (ms)

Response Parameters

ParameterTypeComments
listarrayObject
> tnumberTimestamp(ms)
> sstringName of the trading pair
> snstringAlias
> cstringClose price
> hstringHigh price
> lstringLow price
> ostringOpen price
> vstringTrading volume

Request Example

curl --location --request GET 'https://api-testnet.bybit.com/spot/v3/public/quote/kline?symbol=BTCUSDT&interval=1m&limit=1'

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"list": [
{
"t": 1659430380000,
"s": "BTCUSDT",
"sn": "BTCUSDT",
"c": "21170.14",
"h": "21170.14",
"l": "21127.86",
"o": "21127.86",
"v": "0.907276"
}
]
},
"retExtInfo": {},
"time": 1659430400353
}