{"slug":"api-debyko-com-v2-candles-52b4b0","title":"OHLCV candles for crypto perpetual futures, 1m to 1d, on trade price (mark and i","host":"api.debyko.com","method":"POST","resource":"https://api.debyko.com/v2/candles","category":"market","description":"OHLCV candles for crypto perpetual futures, 1m to 1d, on trade price (mark and index where the venue publishes them), across 20 venues (Aster Perpetuals, Avantis, Binance USD-M Futures, Bitget Perpetual Futures, Bitunix, Bybit Perpetuals, Coinbase Global Derivatives and 13 more). Built from venue 1-","price_listed":0.005,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"from":"2026-10-01T00:00:00Z","timeframe":"1h","to":"2026-10-01T06:00:00Z","where":"base in (BTC)"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"as_of":{"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{3})?Z$","type":"string"},"closed_only":{"default":true,"type":"boolean"},"from":{"description":"Start of the window, UTC, e.g. 2026-10-01T00:00:00Z.","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{3})?Z$","type":"string"},"include_gaps":{"default":true,"description":"true (default) keeps periods with no candle as gap rows.","type":"boolean"},"include_synthetic":{"default":false,"type":"boolean"},"kind":{"default":"perpetual","enum":["perpetual","spot","all"],"type":"string"},"number_format":{"default":"json","enum":["json","string"],"type":"string"},"price_type":{"default":"trade","description":"trade (default), mark or index.","enum":["trade","mark","index"],"type":"string"},"timeframe":{"description":"Candle period, e.g. 1m, 15m, 1h or 1d; GET /v2/dql/catalogue lists them.","type":"string"},"to":{"description":"End of the window, UTC, e.g. 2026-10-01T06:00:00Z.","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{3})?Z$","type":"string"},"trade":{"type":"boolean"},"units":{"default":"published","enum":["published","base"],"type":"string"},"where":{"description":"DQL selection of the markets to read, e.g. base in (BTC) or venue = HYPERLIQUID and base = BTC.","oneOf":[{"type":"string"},{"type":"object"}]}},"required":["timeframe","from","to"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"queryParams":{"additionalProperties":{"type":"string"},"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":false,"properties":{"capabilities_as_of":{"oneOf":[{"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{3})?Z$","type":"string"},{"type":"null"}]},"data_as_of":{"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{3})?Z$","type":"string"},"evaluated_at":{"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{3})?Z$","type":"string"},"from":{"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{3})?Z$","type":"string"},"items":{"items":{"additionalProperties":false,"properties":{"candles":{"type":"array"},"identity_basis":{"enum":["recorded","reconstructed"],"type":"string"},"identity_corrected_at":{"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{3})?Z$","type":"string"},"instrument":{"type":["string","null"]},"kind":{"enum":["perpetual","spot"],"type":"string"},"quote":{"type":["string","null"]},"reason":{"enum":["not_retained","gap","insufficient_history","reference_not_listed","policy_off","venue_capability","no_value","band_truncated","partial_coverage","unit_unknown","unmapped","funding_continuous","collector_gap","horizon_passed","connection_lost","state_lag","source_error","horizon_unknown","freshness_bound","halted","no_update","not_in_scope","no_venues"],"type":"string"},"reasons":{"type":"object"},"retention_from":{},"source":{"enum":["venue","derived"],"type":"string"},"status":{"enum":["present","stale","missing","not_published","off"],"type":"string"},"units":{"type":"object"},"venue":{"type":"string"},"venue_symbol":{"type":"string"}},"required":["instrument","venue","venue_symbol","quote","status","source","retention_from","units","candles"],"type":"object"},"type":"array"},"items_sha256":{"pattern":"^[0-9a-f]{64}$","type":"string"},"listings_as_of":{"oneOf":[{"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{3})?Z$","type":"string"},{"type":"null"}]},"normalisation_version":{"type":"string"},"price_type":{"enum":["trade","mark","index"],"type":"string"},"receipt_id":{"pattern":"^[0-9A-Za-z]{22}$","type":"string"},"resolved_from":{"additionalProperties":{"type":"string"},"type":"object"},"served_at":{"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}Z$","type":"string"},"settled":{"type":"boolean"},"timeframe":{"type":"string"},"to":{"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{3})?Z$","type":"string"},"trial":{"additionalProperties":false,"properties":{"asked_days":{"type":"integer"},"cap":{"type":"string"},"layer":{"type":"string"},"limit":{"type":"integer"},"plan":{"type":"string"},"until":{"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{3})?Z$","type":"string"}},"required":["plan","until"],"type":"object"},"units":{"enum":["published","base"],"type":"string"}},"required":["evaluated_at","settled","items_sha256","timeframe","price_type","from","to","units","items"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"OHLCV candles for crypto perpetual futures, 1m to 1d, on trade price (mark and index where the venue publishes them), across 20 venues (Aster Perpetuals, Avantis, Binance USD-M Futures, Bitget Perpetual Futures, Bitunix, Bybit Perpetuals, Coinbase Global Derivatives and 13 more). Built from venue 1-minute klines; periods with no data come back as gap rows, not interpolated. DQL filter, timeframe, from, to. No charge when no candle is returned. 0.005 USDC per call.","last_updated":"2026-11-16T05:19:54.934Z","schemes":["exact"]}