Skip to main content

Get K-line Data

Get K-line Data

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

Rate limit: IP

Request frequency limit: 5/1s

Request URL

GET /deepcoin/market/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
"20084", // Volume (base currency)
"1925967.4841" // Volume (quote currency)
],
[
"1739157600000",
"95963.3",
"95983.2",
"95898.2",
"95900.5",
"5472",
"524979.2415"
]
]
}