Kline / Candlestick Data
GET
/api/v1/gateway/public/klinesK Line provides historical candlestick (K line) data for a specified trading pair on our platform.
请求参数
The trading pair symbol for which K line data is requested.
The time interval for the K lines (eg. 1m, 3m, 5m, 15m, 30m, 1h, 4h, 8h, 12h,1d).
The start time for the K line data (Unix timestamps in milliseconds & UTC). If not provided, the API returns the most recent K lines.
The end time for the K line data (Unix timestamps in milliseconds & UTC). If not provided, the API returns the most recent K lines.
Default 500; max 1000.
示例代码
Responses
An array containing K line data for the specified trading pair.
The time for the opening of the K line (Unix timestamps in milliseconds & UTC).
The opening price of the K line.
The highest price reached during the K line period.
The lowest price reached during the K line period.
The closing price of the K line.
The total trading volume during the K line period.
The number of trades executed during the K line period.
The time for the closing of the K line (Unix timestamps in milliseconds & UTC).
The volume of quote asset during the K line period.
The volume of base asset bought by takers during the K line period.
The volume of quote asset bought by takers during the K line period.
{
"klines": [
{
"openTime": "1728702300000",
"openPrice": "61166.00000000",
"highPrice": "61166.00000000",
"lowPrice": "61166.00000000",
"closePrice": "61166.00000000",
"volume": "0.00000000",
"trades": "0",
"closeTime": "1728702599999",
"quoteVolume": "0.00000000",
"takerBuyBaseVolume": "0.00000000",
"takerBuyQuoteVolume": "0.00000000"
},
{
"openTime": "1728702600000",
"openPrice": "61166.00000000",
"highPrice": "61166.00000000",
"lowPrice": "61166.00000000",
"closePrice": "61166.00000000",
"volume": "0.00000000",
"trades": "0",
"closeTime": "1728702899999",
"quoteVolume": "0.00000000",
"takerBuyBaseVolume": "0.00000000",
"takerBuyQuoteVolume": "0.00000000"
},
{
"openTime": "1728702900000",
"openPrice": "61166.00000000",
"highPrice": "61166.00000000",
"lowPrice": "61166.00000000",
"closePrice": "61166.00000000",
"volume": "0.00000000",
"trades": "0",
"closeTime": "1728703199999",
"quoteVolume": "0.00000000",
"takerBuyBaseVolume": "0.00000000",
"takerBuyQuoteVolume": "0.00000000"
},
{
"openTime": "1728703200000",
"openPrice": "61166.00000000",
"highPrice": "61166.00000000",
"lowPrice": "61166.00000000",
"closePrice": "61166.00000000",
"volume": "0.00000000",
"trades": "0",
"closeTime": "1728703499999",
"quoteVolume": "0.00000000",
"takerBuyBaseVolume": "0.00000000",
"takerBuyQuoteVolume": "0.00000000"
},
{
"openTime": "1728703500000",
"openPrice": "61166.00000000",
"highPrice": "61166.00000000",
"lowPrice": "61166.00000000",
"closePrice": "61166.00000000",
"volume": "0.00000000",
"trades": "0",
"closeTime": "1728703799999",
"quoteVolume": "0.00000000",
"takerBuyBaseVolume": "0.00000000",
"takerBuyQuoteVolume": "0.00000000"
},
{
"openTime": "1728703800000",
"openPrice": "61166.00000000",
"highPrice": "61166.00000000",
"lowPrice": "61166.00000000",
"closePrice": "61166.00000000",
"volume": "0.00000000",
"trades": "0",
"closeTime": "1728704099999",
"quoteVolume": "0.00000000",
"takerBuyBaseVolume": "0.00000000",
"takerBuyQuoteVolume": "0.00000000"
},
{
"openTime": "1728704100000",
"openPrice": "61166.00000000",
"highPrice": "61166.00000000",
"lowPrice": "61166.00000000",
"closePrice": "61166.00000000",
"volume": "0.00000000",
"trades": "0",
"closeTime": "1728704399999",
"quoteVolume": "0.00000000",
"takerBuyBaseVolume": "0.00000000",
"takerBuyQuoteVolume": "0.00000000"
},
{
"openTime": "1728704400000",
"openPrice": "61166.00000000",
"highPrice": "61166.00000000",
"lowPrice": "61166.00000000",
"closePrice": "61166.00000000",
"volume": "0.00000000",
"trades": "0",
"closeTime": "1728704699999",
"quoteVolume": "0.00000000",
"takerBuyBaseVolume": "0.00000000",
"takerBuyQuoteVolume": "0.00000000"
},
{
"openTime": "1728704700000",
"openPrice": "61166.00000000",
"highPrice": "61166.00000000",
"lowPrice": "61166.00000000",
"closePrice": "61166.00000000",
"volume": "0.00000000",
"trades": "0",
"closeTime": "1728704999999",
"quoteVolume": "0.00000000",
"takerBuyBaseVolume": "0.00000000",
"takerBuyQuoteVolume": "0.00000000"
},
{
"openTime": "1728705000000",
"openPrice": "61166",
"highPrice": "61166",
"lowPrice": "61166",
"closePrice": "61166",
"volume": "0",
"trades": "0",
"closeTime": "1728705299999",
"quoteVolume": "0",
"takerBuyBaseVolume": "0",
"takerBuyQuoteVolume": "0"
}
]
}