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
startTimeandendTimecan only be up to 200 days- Between
startTimeandendTime, the most recentlimitdata fromendTimewill be returned:
- If
startTimeandendTimeare not sent, current timestamp will be set asendTime, and the most recent data will be returned.- If
startTimeis sent only, the timestamp of 200 days afterstartTimewill be set asendTime(up to the current time)- If
endTimeis sent only, the timestamp of 200 days beforeendTimewill 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.
]
]