Skip to main content

Get Market Candlestick

HTTP request

GET /spot/kline

Request parameters

Parameter NameRequiredTypeNotes
markettruestringMarket name
price_typefalsestringPrice type for drawing candlesticks, default as latest_price, no mark_price in spot markets
limitfalseintNumber of transaction data items.
Default as 100, max. value 1000
periodtruestringCandlestick period.
One of ["1min", "3min", "5min", "15min", "30min", "1hour", "2hour", "4hour", "6hour", "12hour", "1day", "3day", "1week"]

Return parameters

Parameter NameTypeNotes
marketstringMarket name
created_atintTimestamp (millisecond)
openstringOpening price
closestringClosing price
highstringHighest price
lowstringLowest price
volumestringFilled volume
valuestringFilled value

Response example

GET /spot/kline?market=LATUSDT&limit=1&period=1day

Response example

{
"code": 0,
"data": [
{
"market": "LATUSDT",
"created_at": 17017617600000,
"open": "0.008286",
"close": "0.008157",
"high": "0.008390",
"low": "0.008106",
"volume": "807714.49139758",
"value": "6689.21644207"
}
],
"message" : "OK"
}