request interface
/V1/Market/kline
Parameter |
Required |
Type |
Notes |
symbol_id |
Yes |
int |
Trading pair ID |
from |
Yes |
int |
start timestamp |
to |
Yes |
int |
deadline timestamp |
resolution |
No |
string |
K line type, if not passed, defaults to 4-hour candles. 1 = 1min candles, 5 = 5min candles, 15 = 15min candles, 30 = 30min candles, 60 = 60min candles, 240 = 4 hour candles, D = daily candles, W = weekly candles, M = monthly candles |
{
"status": 200,
"source": "API",
"msg": "OK",
"data": {
"kline": [{
"t": 1638835200,
"o": 50424.72,
"h": 51533.1,
"l": 50322.3,
"c": 51380.96,
"v": 90304.39
}],
"symbolId": 1010
},
"seconds": 1638875830,
"microtime": 1638875830637
}