Get candlestick history(K-line data)
Fetch K-line data for a specified token, supporting different time intervals
GET: /market/kline
Content-Type: application/json
Parameters
Parameter | Type | mandatory | Default | Description | Ranges |
---|---|---|---|---|---|
baseAddress | string | true | Base Token Contract Address | ||
interval | string | true | Interval | 1m,5m,15m,1h,4h,12h,1d | |
beginTime | int | false | 10 | Start timestamp | |
endTime | int | false | End timestamp |
Response
Example:
{
"code": 0,
"data": [
{
"c": "string", // Close Price
"h": "string", // High Price
"i": "string", // Interval
"l": "string", // Low Price
"o": "string", // Open Price
"q": "string", // Trading Volume
"s": "string", // Trading Pair Symbol
"t": 0, // Timestamp
"v": "string" // Turnover
}
],
"msg": "string",
"time": 0
}