Read price candles
Read three hourly ETH/USDT candles, newest first.
Endpoint & access
GET
/api/spot/instruments/candlesRate limit
- 4 requests / 1 second
Query parameters
| Field | Data type | Required | Meaning |
|---|---|---|---|
| instrument_id | string | YES | Trading pair, for example ETH/USDT |
| start_time | string | NO | Start time as a Unix timestamp in seconds, encoded as a decimal integer string. |
| end_time | string | NO | End time as a Unix timestamp in seconds, encoded as a decimal integer string. |
| period | string | YES | Kline. Please refer to the description for the value range |
Tip
The value of period can only be "1", "3", "5", "15", "30", "60", "120", "240", "360", "720", "D", "W", "M"], otherwise the request will be rejected.
Corresponding to [1min, 3min, 5min, 15min, 30min, 1 hour, 2 hour, 4 hour, 6 hour, 12 hour, 1 day, 1 week, 1 month]
Returned fields
Format: [timestamp, open, high, low, close, volume]