{"api":{"id":"api_c0174e6881535812a6897152","slug":"crypto-ohlcv-candles","name":"Crypto Candles (OHLCV)","description":"Open, high, low, close and volume candles for crypto pairs from Coinbase, Kraken, OKX, Gate, Bitfinex and Bitstamp in one format: 1-minute to daily candles over any date range, with quote volume, VWAP and trade counts where the exchange gives them.","kind":"ready_made","visibility":"public","domain":"exchange.coinbase.com","source_url":"https://docs.cdp.coinbase.com/exchange/reference/exchangerestapi_getproductcandles","category":"finance","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":13,"created_at":"2026-12-06T03:33:09.194Z","updated_at":"2026-12-06T03:33:09.194Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"exchange","type":"string","description":"The exchange: coinbase, kraken, okx, gate, bitfinex or bitstamp.","required":true,"coverage":1,"example":"kraken"},{"name":"pair","type":"string","description":"The pair read, as BASE-QUOTE, such as BTC-USD.","required":true,"coverage":1,"example":"BTC-USD"},{"name":"interval","type":"string","description":"Candle size: 1m, 5m, 15m, 1h, 6h or 1d.","required":false,"coverage":1,"example":"1h"},{"name":"open_at","type":"datetime","description":"When the candle opened (UTC).","required":true,"coverage":1,"example":"2026-12-05T19:00:00.000Z"},{"name":"open","type":"number","description":"First trade price in the candle, in the quote currency.","required":false,"coverage":1,"example":43523.2},{"name":"high","type":"number","description":"Highest trade price in the candle.","required":false,"coverage":1,"example":43523.2},{"name":"low","type":"number","description":"Lowest trade price in the candle.","required":false,"coverage":1,"example":42541.1},{"name":"close","type":"number","description":"Last trade price in the candle (the latest price while it is still open).","required":false,"coverage":1,"example":43154.4},{"name":"volume","type":"number","description":"Amount traded in the base currency, such as BTC.","required":false,"coverage":1,"example":1094.39434119},{"name":"quote_volume","type":"number","description":"Value traded in the quote currency, such as USD (Kraken, OKX and Gate).","required":false,"coverage":1,"example":47145413.824124},{"name":"vwap","type":"number","description":"Volume-weighted average price of the candle (Kraken, OKX and Gate).","required":false,"coverage":1,"example":43079},{"name":"trades_count","type":"integer","description":"Number of trades in the candle (Kraken only).","required":false,"coverage":1,"example":11879},{"name":"is_closed","type":"boolean","description":"False for the candle that is still open; its values change until it closes.","required":false,"coverage":1,"example":true}],"inputs":[{"name":"exchanges","type":"array","description":"Exchanges to read: coinbase, kraken, okx, gate, bitfinex and bitstamp. Coinbase alone when empty.","example":["coinbase","kraken"],"enum":["coinbase","kraken","okx","gate","bitfinex","bitstamp"]},{"name":"pairs","type":"array","description":"Pairs written BASE-QUOTE, such as BTC-USD, ETH-USDT or SOL-EUR (up to 50).","example":["BTC-USD"],"required":true},{"name":"interval","type":"string","description":"Candle size: 1m, 5m, 15m, 1h, 6h or 1d. Daily and 6-hour candles follow UTC.","default":"1h","example":"1h","enum":["1m","5m","15m","1h","6h","1d"]},{"name":"start","type":"string","description":"First candle time, as a day (2026-12-01) or a UTC date and time (2026-12-01T12:00:00Z). Empty for the latest candles.","example":"2026-12-01"},{"name":"end","type":"string","description":"Last candle time, same format; a day alone means the whole day. Empty for now.","example":"2026-12-05"},{"name":"usdt_for_usd","type":"boolean","description":"When an exchange has no pair quoted in USD, read its USDT pair instead (the pair field shows which). On by default.","default":true}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"close":{"description":"Last trade price in the candle (the latest price while it is still open).","type":"number"},"exchange":{"description":"The exchange: coinbase, kraken, okx, gate, bitfinex or bitstamp.","type":"string"},"high":{"description":"Highest trade price in the candle.","type":"number"},"interval":{"description":"Candle size: 1m, 5m, 15m, 1h, 6h or 1d.","type":"string"},"is_closed":{"description":"False for the candle that is still open; its values change until it closes.","type":"boolean"},"low":{"description":"Lowest trade price in the candle.","type":"number"},"open":{"description":"First trade price in the candle, in the quote currency.","type":"number"},"open_at":{"description":"When the candle opened (UTC).","format":"date-time","type":"string"},"pair":{"description":"The pair read, as BASE-QUOTE, such as BTC-USD.","type":"string"},"quote_volume":{"description":"Value traded in the quote currency, such as USD (Kraken, OKX and Gate).","type":"number"},"trades_count":{"description":"Number of trades in the candle (Kraken only).","type":"integer"},"volume":{"description":"Amount traded in the base currency, such as BTC.","type":"number"},"vwap":{"description":"Volume-weighted average price of the candle (Kraken, OKX and Gate).","type":"number"}},"required":["exchange","pair","open_at"],"title":"Crypto Candles (OHLCV)","type":"object"},"samples":[{"exchange":"kraken","pair":"BTC-USD","interval":"1h","open_at":"2026-12-05T19:00:00.000Z","open":43523.2,"high":43523.2,"low":42541.1,"close":43154.4,"volume":1094.39434119,"quote_volume":47145413.824124,"vwap":43079,"trades_count":11879,"is_closed":true},{"exchange":"kraken","pair":"BTC-USD","interval":"1h","open_at":"2026-12-05T20:00:00.000Z","open":43156,"high":43500,"low":43018.8,"close":43166.7,"volume":450.77378662,"quote_volume":19487446.6467479,"vwap":43231.1,"trades_count":7863,"is_closed":true},{"exchange":"kraken","pair":"BTC-USD","interval":"1h","open_at":"2026-12-05T21:00:00.000Z","open":43171.1,"high":43898.3,"low":43098,"close":43609.2,"volume":474.35987844,"quote_volume":20656000.9066698,"vwap":43545,"trades_count":8395,"is_closed":true}],"validation":{"checked_at":"2026-12-06T03:33:09.177Z","field_coverage":{"close":1,"exchange":1,"high":1,"interval":1,"is_closed":1,"low":1,"open":1,"open_at":1,"pair":1,"quote_volume":1,"trades_count":1,"volume":1,"vwap":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_c0174e6881535812a6897152/run","openapi":"https://pullrow.dev/v1/apis/api_c0174e6881535812a6897152/openapi.json","contract":"https://pullrow.dev/v1/apis/api_c0174e6881535812a6897152/contract.json","page":"https://pullrow.dev/catalog/crypto-ohlcv-candles"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["Kraken keeps only its latest 720 candles of each size (12 hours of 1-minute candles, 30 days of hourly ones) and Gate its latest 10,000; an earlier start returns what is left there, with a note.","Kraken and Gate have no 6-hour candles: theirs are built from hourly candles in UTC blocks starting at 00:00, 06:00, 12:00 and 18:00, so Kraken's 6h history covers about 30 days.","quote_volume and vwap come only from Kraken, OKX and Gate, and trades_count only from Kraken. Some exchanges leave out intervals with no trades.","An exchange without the pair is skipped with a note. OKX and Gate list few USD pairs (Gate's trade thinly): with usdt_for_usd on, a missing USD pair is read as its USDT pair and the pair field says so.","Without start, each pair on each exchange returns its latest candles, max_items shared evenly (at most 5,000 each). One run returns at most 50,000 candles.","KuCoin is not offered: it refuses requests from the region our API reads from. Prices and volumes are as each exchange publishes them, each exchange's terms apply, and requests are spaced to respect their limits."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"exchange","label":"Exchange","description":"The exchange: coinbase, kraken, okx, gate, bitfinex or bitstamp.","group":"Basics","shown":true,"written":false},{"name":"pair","label":"Pair","description":"The pair read, as BASE-QUOTE, such as BTC-USD.","group":"Basics","shown":true,"written":false},{"name":"interval","label":"Interval","description":"Candle size: 1m, 5m, 15m, 1h, 6h or 1d.","group":"Basics","shown":true,"written":false},{"name":"open_at","label":"Open at","description":"When the candle opened (UTC).","group":"Dates","shown":true,"written":false},{"name":"open","label":"Open","description":"First trade price in the candle, in the quote currency.","group":"Basics","shown":true,"written":false},{"name":"high","label":"High","description":"Highest trade price in the candle.","group":"Basics","shown":true,"written":false},{"name":"low","label":"Low","description":"Lowest trade price in the candle.","group":"Basics","shown":true,"written":false},{"name":"close","label":"Close","description":"Last trade price in the candle (the latest price while it is still open).","group":"Basics","shown":true,"written":false},{"name":"volume","label":"Volume","description":"Amount traded in the base currency, such as BTC.","group":"Basics","shown":true,"written":false},{"name":"quote_volume","label":"Quote volume","description":"Value traded in the quote currency, such as USD (Kraken, OKX and Gate).","group":"Basics","shown":true,"written":false},{"name":"vwap","label":"Vwap","description":"Volume-weighted average price of the candle (Kraken, OKX and Gate).","group":"Basics","shown":true,"written":false},{"name":"trades_count","label":"Trades count","description":"Number of trades in the candle (Kraken only).","group":"Basics","shown":true,"written":false},{"name":"is_closed","label":"Closed","description":"False for the candle that is still open; its values change until it closes.","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"exchanges","label":"Exchanges","help":"Exchanges to read: coinbase, kraken, okx, gate, bitfinex and bitstamp. Coinbase alone when empty.","example":"coinbase, kraken","written":false},{"name":"pairs","label":"Pairs","help":"Pairs written BASE-QUOTE, such as BTC-USD, ETH-USDT or SOL-EUR (up to 50).","example":"BTC-USD","written":false},{"name":"interval","label":"Interval","help":"Candle size: 1m, 5m, 15m, 1h, 6h or 1d. Daily and 6-hour candles follow UTC.","example":"1h","written":false},{"name":"start","label":"Start","help":"First candle time, as a day (2026-12-01) or a UTC date and time (2026-12-01T12:00:00Z). Empty for the latest candles.","example":"2026-12-01","written":false},{"name":"end","label":"End","help":"Last candle time, same format; a day alone means the whole day. Empty for now.","example":"2026-12-05","written":false},{"name":"usdt_for_usd","label":"Usdt for (USD)","help":"When an exchange has no pair quoted in USD, read its USDT pair instead (the pair field shows which). On by default.","example":"","written":false}]}},"incidents":[]}