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
Parameter | Required | Type | Comments |
---|---|---|---|
symbol | true | string | Name of the trading pair |
interval | true | string | Chart interval |
limit | false | integer | Limit for data size. [1 , 1000 ]. Default: 1000 |
startTime | false | integer | Start time (ms) |
endTime | false | integer | End time (ms) |
Response Parameters
Parameter | Type | Comments |
---|---|---|
list | array | Object |
> t | number | Timestamp(ms) |
> s | string | Name of the trading pair |
> sn | string | Alias |
> c | string | Close price |
> h | string | High price |
> l | string | Low price |
> o | string | Open price |
> v | string | Trading 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
}