Exchange OHLCV Candlesticks
Returns 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.
Request
- Base URLhttps://api.asksurf.ai
- AuthHTTP bearer
Query parameters
Trading pair (e.g. BTC/USDT)
Market type: spot for spot trading, swap/perpetual/perp for perpetual contracts
Candle 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.
Start of time range. Accepts Unix seconds or date string (YYYY-MM-DD, ISO8601)
Max 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.
Exchange identifier. Note: hyperliquid uses USDC-settled perps (e.g. BTC/USDC:USDC); pass USDC-quoted pairs when querying hyperliquid.
Response
OK
Example response
{
"$schema": "https://example.com/schemas/SimpleListResponseExchangeKlineResponse.json"
}Changes
No recorded changes to this operation across all 12 revisions of this API.