Get Candlestick Data
HTTP request Retrieve candlestick data
- GET /api/v2/market/candles
Weight(IP): 1
Request parameters
| Parameter | Parameter type | Required? | Description | 
|---|---|---|---|
| symbol | String | Yes | Futures name | 
| period | String | Yes | Candlestick interval, valid values include: [1m,5m,15m,30m,1h,2h,4h,6h,8h,12h,1d,1w,1M] | 
| limit | String | No | Number of results | 
Request example
curl "https://api-spot.weex.com/api/v2/market/candles?symbol=BTCUSDT_SPBL&period=30m&limit="
Response parameters
| Field Name | Type | Field Description | 
|---|---|---|
| 0 | long | System timestamp (ms) | 
| 1 | String | Opening price | 
| 2 | String | Highest price | 
| 3 | String | Lowest price | 
| 4 | String | Closing price | 
| 5 | String | Trading volume | 
| 6 | String | Trading turnover | 
Response example
{
  "code": "00000",
  "msg": "success",
  "requestTime": 1743669821003,
  "data": [
    [
      1743669000000,
      "83654.0",
      "83778.0",
      "83531.5",
      "83688.7",
      "248.17024800",
      "20755885.859164900"
    ],
    [
      1743667200000,
      "83457.9",
      "83719.0",
      "83457.9",
      "83654.0",
      "247.94000200",
      "20730711.264144200"
    ]
  ]
}