Continuous Contract Kline/Candlestick Data
API Description
Kline/candlestick bars for a specific contract type. Klines are uniquely identified by their open time.
- Contract type:
- PERPETUAL
- CURRENT_QUARTER
- NEXT_QUARTER
HTTP Request
GET /dapi/v1/continuousKlines
Request Weight
based on parameter LIMIT
LIMIT | weight |
---|---|
[1,100) | 1 |
[100, 500) | 2 |
[500, 1000] | 5 |
1000 | 10
Request Parameters
Name | Type | Mandatory | Description |
---|---|---|---|
pair | STRING | YES | |
contractType | ENUM | YES | |
interval | ENUM | YES | |
startTime | LONG | NO | |
endTime | LONG | NO | |
limit | INT | NO | Default 500; max 1500. |
- The difference between
startTime
andendTime
can only be up to 200 days- Between
startTime
andendTime
, the most recentlimit
data fromendTime
will be returned:
- If
startTime
andendTime
are not sent, current timestamp will be set asendTime
, and the most recent data will be returned.- If
startTime
is sent only, the timestamp of 200 days afterstartTime
will be set asendTime
(up to the current time)- If
endTime
is sent only, the timestamp of 200 days beforeendTime
will be set asstartTime
Response Example
[
[
1591258320000, // Open time
"9640.7", // Open
"9642.4", // High
"9640.6", // Low
"9642.0", // Close (or latest price)
"206", // Volume
1591258379999, // Close time
"2.13660389", // Base asset volume
48, // Number of trades
"119", // Taker buy volume
"1.23424865", // Taker buy base asset volume
"0" // Ignore.
]
]