Get K-line Data
Description
Get K-line data of the designated trading pair
HTTP Request
GET /v3/market/candles
Request Parameters
Parameter | Required | Type | Description |
---|---|---|---|
symbol | Yes | String | A trading pair, consisting of two currencies: base currency and quote currency |
interval | Yes | String |
|
limit | No | Integer | Number of results per request. The default limit is 100, with a maximum of 500. |
sTime | No | Long | Start time |
eTime | No | Long | End time |
Response Parameters
Parameter | Type | Description |
---|---|---|
l | String | Lowest price |
h | String | Highest price |
o | String | Opening price |
c | String | Closing price |
amt | String | Trading unit, the quantity of the quote currency. |
qty | String | Trading unit, the quantity of the base currency, or Cont for the number of contracts. |
tC | String | Trades |
sT | String | Start time |
cT | String | End time |
Request Example
{
"symbol": "BTC_USDT_PERP",
"interval": "MINUTE_1",
"limit": "10"
}
Response Example
{
"code": 200,
"data": [
[
"58651",
"58651",
"58651",
"58651",
"0",
"0",
"0",
"0",
"0",
"1719975420000",
"1719975479999"
],
[
"58651",
"58651",
"58651",
"58651",
"0",
"0",
"0",
"0",
"0",
"1719975480000",
"1719975539999"
],
[
"58651",
"58651",
"58651",
"58651",
"0",
"0",
"0",
"0",
"0",
"1719975540000",
"1719975599999"
],
[
"58651",
"58651",
"58651",
"58651",
"0",
"0",
"0",
"0",
"0",
"1719975600000",
"1719975659999"
],
[
"58651",
"58651",
"58651",
"58651",
"0",
"0",
"0",
"0",
"0",
"1719975660000",
"1719975719999"
],
[
"58651",
"58651",
"58651",
"58651",
"0",
"0",
"0",
"0",
"0",
"1719975720000",
"1719975779999"
],
[
"58651",
"58651",
"58651",
"58651",
"0",
"0",
"0",
"0",
"0",
"1719975780000",
"1719975839999"
],
[
"58651",
"58651",
"58651",
"58651",
"0",
"0",
"0",
"0",
"0",
"1719975840000",
"1719975899999"
],
[
"58651",
"58651",
"58651",
"58651",
"0",
"0",
"0",
"0",
"0",
"1719975900000",
"1719975959999"
],
[
"58651",
"58651",
"58651",
"58651",
"0",
"0",
"0",
"0",
"0",
"1719975960000",
"1719976019999"
]
],
"msg": "Success"
}