Skip to main content

Kline Data

Description

Get kline data.

Method

klines

Request

{
"id": "51e2affb-0aba-4821-ba75-f2625006eb43",
"method": "klines",
"params": {
"symbol": "BTCUSDT",
"interval": "1h"
}
}

Weight

1

Request Parameters

NameTypeRequiredDescription
symbolSTRINGYESTrading pair
intervalENUMYESKline interval
startTimeLONGNOStart time
endTimeLONGNOEnd time
limitINTNODefault 500; Maximum 1500

Response Example

{
"id": "9d32157c-a556-4d27-9866-66760a174b57",
"status": 200,
"result": [
[
1499040000000, // Open time
"0.01634790", // Open price
"0.80000000", // High price
"0.01575800", // Low price
"0.01577100", // Close price
"148976.11427815", // Volume
1499644799999, // Close time
"2434.19055334", // Quote asset volume
308, // Number of trades
"1756.87402397", // Taker buy base asset volume
"28.46694368", // Taker buy quote asset volume
"0" // Ignore
]
],
"rateLimits": [
{
"rateLimitType": "REQUEST_WEIGHT",
"interval": "MINUTE",
"intervalNum": 1,
"limit": 2400,
"count": 1
}
]
}