Loading the API documentation
No notifications.
Language
English
No other language is available yet.
Loading the API documentation
/v1/markets/{symbol}/candlesOHLCV candles built from stored trades, oldest first
Buckets start at UTC epoch multiples of the interval (a 1d candle starts at 00:00 UTC). Only buckets that contain at least one trade are returned: there is no gap filling, so consecutive candles may be more than one interval apart. The response holds the most recent limit such buckets, ascending by openTime. open and close are the first and last trade in the bucket by execution time, then trade id. volume is the sum of trade amounts in the base asset.
| Name | In | Required | Type and limits | Description |
|---|---|---|---|---|
symbol | path | Yes | string, pattern ^[A-Za-z0-9]{1,12}-[A-Za-z0-9]{1,12}$ | BASE-QUOTE, case-insensitive. Anything else is a 400. |
interval | query | Yes | string, one of 1m, 5m, 15m, 1h, 4h, 1d | None |
limit | query | No | integer, 1 to 500, default 100 | None |
| Status | Meaning | Body |
|---|---|---|
| 200 | OK | CandleList |
| 400 | Invalid input | Error |
| 404 | Unknown resource | Error |
curl -s 'https://exchange.zethareum.com/v1/markets/ZET-ZUSD/candles?interval=1m'The values in the path are examples: put in your own (angle brackets mark a value to fill in).