crypto

Centralized-exchange OHLCV candlesticks for a spot trading...

Centralized-exchange OHLCV candlesticks for a spot trading pair (e.g. BTC-USD, ETH-USD, SOL-USD), free/keyless. Pass interval (1m/5m/15m/1h/6h/1d) and limit. Each bar: time, open, high, low, close, volume. Net-new vs crypto.dex-ohlcv (on-chain DEX) — this is CEX spot.

get/api/crypto/cex-klines

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/crypto/cex-klines
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

pairstring required

Trading pair, e.g. BTC-USD.

interval'1m' | '5m' | '15m' | '1h' | '6h' | '1d'

Interval.

limitinteger

Maximum number of results to return.

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.