Skip to main content

Klines (OHLCV)

Retrieve kline (OHLCV) data for a symbol.

For the start and end parameter combinations:

startendBehavior
not setnot setReturn recent limit data points (count backward).
setnot setReturn limit data points from start (count forward).
not setsetReturn limit data points from end (count backward).
setsetIf start/end and resolution would yield more than limit data points, the request is rejected. Otherwise return up to limit points from end to start (count backward).

Request Parameters​

NameTypeRequiredDescription
symbolStringYesSymbol
resolutionStringYesCandle size in minutes: 1 (1m), 5 (5m), 15 (15m), 30 (30m), 60 (1h), 240 (4h), 360 (6h), 1440 (1d), 10080 (1w), 43200 (1mo).
startLongNoStart timestamp (seconds)
endLongNoEnd timestamp (seconds)
limitIntegerNoThe count of klines

Response Content​

Successful response

example
GEThttps://api.btse.com/public-api/market/v1/klines

Response

{
"success": true,
"code": 1,
"msg": "Success",
"time": 1624989977940,
"data": [
[
"1667191500",
"20554.9",
"20581.2",
"20542.2",
"20565.9",
"2824854.568855"
],
[
"1667192400",
"20565.4",
"20594.5",
"20466.6",
"20585.9",
"3283055.501333"
]
]
}