Skip to main content

Get mark price K-line Data

Get K-line Data

Get mark price K-line data for trading products. The return array values are: [timestamp, open price, highest price, lowest price, close price, trading volume (0), trading volume (0)]

Rate limit: IP

Request frequency limit: 5/1s

Request URL

GET /deepcoin/market/mark-price-candles

Request Parameters

Field NameRequiredTypeDescription
instIdtruestringProduct ID
barfalsestringTime granularity
Default: 1m
1 minute: 1m
5 minutes: 5m
15 minutes: 15m
30 minutes: 30m
1 hour: 1H
4 hours: 4H
12 hours: 12H
1 day: 1D
1 week: 1W
1 month: 1M
1 year: 1Y
afterfalseintegerRequest content before this timestamp (older data), value should be the ts from the response
limitfalseintegerMaximum number of results per page is 300
Default: 100

Response Example

{
"code": "0",
"msg": "",
"data": [
[
"1739157660000", // Timestamp
"95900.5", // Open price
"95932.2", // Highest price
"95850.4", // Lowest price
"95913.4", // Close price
"0", // Volume (base currency)
"0" // Volume (quote currency)
],
[
"1739157600000",
"95963.3",
"95983.2",
"95898.2",
"95900.5",
"0",
"0"
]
]
}