Get product candles
Products
Get product candles
Historic rates for a product. Rates are returned in grouped buckets. Candle schema is of the form [timestamp, price_low, price_high, price_open, price_close]
GET
Get product candles
Time Range
If thestart or end fields are not provided, both fields are ignored. If a custom time range is not declared, then one ending now is selected.
The granularity field must be one of the following “second” values: {60, 300, 900, 3600, 21600, 86400}, or your request is rejected. These values correspond to timeslices representing one minute, five minutes, fifteen minutes, one hour, six hours, and one day, respectively.
If data points are readily available, your response may contain as many as 300 candles and some of those candles may precede your declared start value.
Max Candles
The maximum number of data points for a single request is
300 candles.300 data points, your request is rejected. To retrieve fine granularity data over a larger time range, you must make multiple requests with new start/end ranges.
Response Items
Each bucket is an array of the following information:timebucket start timelowlowest price during the bucket intervalhighhighest price during the bucket intervalopenopening price (first trade) in the bucket intervalcloseclosing price (last trade) in the bucket intervalvolumevolume of trading activity during the bucket interval