OHLCV Candlesticks
/gateway/v1/exchange/klinesReturns OHLCV candlestick data with period summary stats (high, low, total volume).
Intervals: 15 options from `1m` to `1M`.
Pagination: use `from` to set the start time and `limit` to control candle count. For longer ranges, pass the last returned candle's timestamp as the next `from` value. Exchange-side limits vary (200–1000 per request).
Set `type=swap` to query perpetual contract candles instead of spot.
Query Parameters
Trading pair (e.g. BTC/USDT)
BTC/USDTMarket type: spot for spot trading, swap/perpetual/perp for perpetual contracts
spotswapperpetualperpspotCandle size — bucket duration for each returned OHLCV row. This endpoint uses `interval` only; it does NOT accept `time_range`. Use `from` + `limit` to control the window.
1m3m5m15m30m1h2h4h6h8h12h1d3d1w1M1hStart of time range. Accepts Unix seconds or date string (YYYY-MM-DD, ISO8601)
2026-03-01Max number of candles to return. Exchange may cap lower (e.g. 200-1000). For longer ranges, paginate using the last returned timestamp as the next from value.
100Exchange identifier. Note: hyperliquid uses USDC-settled perps (e.g. BTC/USDC:USDC); pass USDC-quoted pairs when querying hyperliquid.
binanceokxbybitbitgetcoinbasekrakengatehtxkucoinmexcupbitbitfinexbitstampderibitbitmexbithumbhyperliquidbinance