Available as MCP tool:
crypto_historical_klines — call directly from Claude / Cursor / any MCP client. See MCP Server for the 60-second setup.What it does for your agent
crypto_historical_klines returns OHLCV candlestick bars for a single crypto pair. Use it as the historical pricing primitive an agent reaches for whenever it needs returns, drawdowns, technicals, or backtest data — not for the latest tick (use crypto_snapshot for that).
Two query modes share one endpoint: pass limit to get the most recent N closed candles, or pass start_time + end_time for an exact window. Only closed candles are returned — the in-progress candle is never included.
Response
Number of bars returned.
Credits consumed (always
1).Account credits remaining.
200 OK · crypto_historical_klines
Notes
Direct invocation
HTTP / SDK examples
HTTP / SDK examples
Full parameter reference
crypto_historical_klines — request parameters
crypto_historical_klines — request parameters
Trading pair in
BASE-QUOTE format. Examples: BTC-USD, ETH-USD, SOL-USD.Candlestick interval. One of
1h, 4h, 1d, 1w. Minute-level intervals are not supported.- Recent mode
- Range mode
Pass
limit only (or omit it for the interval default). Returns the most recent N closed candles.Number of recent candles. Defaults vary by interval:
1h = 24, 4h = 42, 1d = 30, 1w = 12. Max 200.Related
Crypto Snapshot
Latest spot price + 24h stats for a crypto pair — use this when you only need “right now”.
Equity Historical Prices
Same Recent / Range shape for US equities at daily granularity.