Skip to main content
Version: V3

Get Kline Data

  • GET /api/v3/market/klines

Weight(IP): 2

Request parameters

ParameterTypeRequired?Description
symbolStringYesTrading pair, e.g. BTCUSDT.
intervalStringYesCandlestick interval (e.g. [1m,5m,15m,30m,1h,2h,4h,6h,8h,12h,1d,1w,1M]).

Request example

curl "https://api-spot.weex.com/api/v3/market/klines?symbol=BTCUSDT&interval=1m&limit=3"

Response parameters

Each kline is an array with the following indexes:

IndexDescription
0Open time (ms).
1Open price.
2High price.
3Low price.
4Close price.
5Volume (base asset).
6Close time (ms).
7Quote asset volume.
8Number of trades.
9Taker buy volume (base asset).
10Taker buy volume (quote asset).

Response example

[
[
1764505860000,
"68940.10",
"68955.00",
"68938.50",
"68952.40",
"12.345",
1764505919999,
"850760.12",
124,
"6.789",
"468123.77"
]
]