Skip to main content

Get K-line data

GET: /v1/spot/public/kline

Parameters

ParameterTypemandatoryDefaultDescriptionRanges
symbolstringtruetrading pair eg:btc_usdt
intervalstringtrueK line type, eg:1m[1m;3m;5m;15m;30m;1h;2h;4h;6h;8h;12h;1d;3d;1w;1M]
startTimenumberfalsestart timestamp
endTimenumberfalseend timestamp
limitnumberfalse1001~1000

Limit Flow Rules

10/s/ip

Response
{
"code": 200,
"msg": "string",
"msgInfo": [
{}
],
"data": [
{
"t": 1662601014832, //open time
"o": "30000", //open price
"c": "32000", //close price
"h": "35000", //highest price
"l": "25000", //lowest price
"q": "512", //transaction quantity
"v": "15360000" //transaction volume
}
]
}