Kline
Get kline data
HTTP Request
GET /derivatives/v3/public/kline
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
category | false | string | Product type. linear ,inverse . Default: linear , but in the response category shows "" |
symbol | true | string | Symbol name |
interval | true | string | Kline interval. 1 3 5 15 30 60 120 240 360 720 D M W |
start | true | integer | The start timestamp (ms) |
end | true | integer | The end timestamp (ms) |
limit | false | integer | Limit for data size per page. [1 , 1000 ]. Default: 200 |
Response Parameters
Parameter | Type | Comments |
---|---|---|
symbol | string | Symbol name |
category | string | Product type. Keeps empty string "" when category is not passed |
list | array |
|
Request Example
- linear
GET /derivatives/v3/public/kline?category=linear&symbol=BTCPERP&interval=1&start=1670371140000&end=1670371200000 HTTP/1.1
Host: api.bybit.com
Response Example
- linear
{
"retCode": 0,
"retMsg": "OK",
"result": {
"symbol": "BTCPERP",
"category": "linear",
"list": [
[
"1670371200000",
"17077",
"17084",
"17077",
"17084",
"0.017",
"290.412"
],
[
"1670371140000",
"17074",
"17077.5",
"17074",
"17077",
"0.006",
"102.457"
]
]
},
"retExtInfo": {},
"time": 1671968612436
}