Mark Price Kline/Candlestick Data
API Description
Kline/candlestick bars for the mark price of a symbol. Klines are uniquely identified by their open time.
HTTP Request
GET /dapi/v1/markPriceKlines
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 |
---|---|---|---|
symbol | STRING | 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
[
[
1591256460000, // Open time
"9653.29201333", // Open
"9654.56401333", // High
"9653.07367333", // Low
"9653.07367333", // Close (or latest price)
"0 ", // Ignore
1591256519999, // Close time
"0", // Ignore
60, // Number of bisic data
"0", // Ignore
"0", // Ignore
"0" // Ignore
]
]