PricingBlogContact
Get started
Tools/Surf
Surf

Exchange OHLCV Candlesticks

/exchange/klines

Returns 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/klines

Topics

Token Prices
Price1 credit a call

Paid from your credits. The exact price shows before it runs, and your spending limits apply.

  • Every AI agent has it
  • Nothing to connect
  • Works in chat, Tasks and automations
Get started

More from Surf

All 105
Bridge 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

Your AI tech team. Plan, build, ship and keep improving your software with Workser.

© 2026 Workser

Platform

  • AI workforce
  • Routines
  • Identity
  • Workser Code
  • Connectors
  • Tools
  • Pricing

Use cases

  • Run your business with AI agents
  • AI coworker for office work
  • Build and run apps
  • Creative work
  • AI front desk

Company

  • FAQ
  • Blog
  • Workser HQ
  • Contact
  • Changelog
  • Status
  • For AI tools

Enterprise

  • Consulting & Training
  • Contact sales

Community

  • Discord
  • [email protected]

Get started

  • Sign up
  • Sign in

Legal

  • Security & Trust
  • Privacy Policy
  • Data deletion
  • Terms of Service
  • Refund Policy
  • Acceptable Use
  • Cookie Policy
  • Accessibility