Get Kline Data
- GET
/api/v3/market/klines
Weight(IP): 2
Request parameters
| Parameter | Type | Required? | Description |
|---|---|---|---|
| symbol | String | Yes | Trading pair, e.g. BTCUSDT. |
| interval | String | Yes | Candlestick 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:
| Index | Description |
|---|---|
| 0 | Open time (ms). |
| 1 | Open price. |
| 2 | High price. |
| 3 | Low price. |
| 4 | Close price. |
| 5 | Volume (base asset). |
| 6 | Close time (ms). |
| 7 | Quote asset volume. |
| 8 | Number of trades. |
| 9 | Taker buy volume (base asset). |
| 10 | Taker 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"
]
]