Exchange OHLCV Candlesticks
/exchange/klinesReturns OHLCV candlestick data with period summary stats (high, low, total volume).
What to tell it
Say these in your message. Your AI agent fills them in when it runs the tool.
- PairNeededTrading pair (e.g. BTC/USDT). Example: BTC/USDT.
- TypeOptionalMarket type: spot for spot trading, swap/perpetual/perp for perpetual contracts. Example: spot. Defaults to "spot".One of spot, swap, perpetual, perp
- IntervalOptionalCandle 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 win…One of 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h
- FromOptionalStart of time range. Accepts Unix seconds or date string (YYYY-MM-DD, ISO8601). Example: 2026-03-01.
- LimitOptionalMax 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.…Like
100 - ExchangeOptionalExchange identifier. Note: hyperliquid uses USDC-settled perps (e.g. BTC/USDC:USDC); pass USDC-quoted pairs when querying hyperliquid. Example: binance. Defaul…One of binance, okx, bybit, bitget, coinbase, kraken, gate, htx
Use it in chat
Paste this in chat with what you need, or type @ and pick it. Your AI agents also use it on their own when the work needs it.
@surf:/exchange/klinesTopics
Token PricesMore from Surf
All 105Bridge Protocol RankingList bridge protocols ranked by USD volume over a time range.2 credits a callToken DEX Trade HistoryReturns recent DEX swap events for a token contract address.4 credits a callKalshi TradesReturns individual trade records for a Kalshi market.4 credits a callClosed TradesReturns a wallet's closed round-trip trades — one row per open→close position lifecycle, with realized per-trade P&L (gross, net = gross −…4 credits a callExchange Trading PairsReturns trading pairs available on an exchange.1 credit a callToken Unlock ScheduleReturns token unlock time-series with cumulative amounts, allocation breakdowns, total supply denominator, and unlocked-supply percentage.2 credits a call