Skip to content
API reference /Market queries

Read price candles

Read three hourly ETH/USDT candles, newest first.

Endpoint & access

GET
/api/spot/instruments/candles

Rate 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]

Example request

GET /api/spot/instruments/candles?instrument_id=ETH%2FUSDT&period=60

Example result

{
  "code": 200,
  "message": null,
  "data": [
    ["1795161600000", "2442.00", "2460.00", "2438.00", "2450.00", "120.50"],
    ["1795158000000", "2435.00", "2448.00", "2430.00", "2442.00", "96.25"],
    ["1795154400000", "2428.00", "2440.00", "2420.00", "2435.00", "88.75"]
  ]
}