CCXT MCP Server

by lazy-dinosaur
Verified

fetchOHLCV

Retrieve OHLCV candlestick data for any trading symbol on supported cryptocurrency exchanges. Specify exchange, symbol, timeframe, and optional parameters like limit or start time to access historical market data.

Instructions

Fetch OHLCV candlestick data for a symbol on an exchange

Input Schema

NameRequiredDescriptionDefault
exchangeIdYesExchange ID (e.g., 'binance', 'coinbase')
limitNoLimit the number of candles returned (optional)
sinceNoTimestamp in ms to fetch data since (optional)
symbolYesTrading symbol (e.g., 'BTC/USDT')
timeframeNoTimeframe (e.g., '1m', '5m', '1h', '1d')1h

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "exchangeId": { "description": "Exchange ID (e.g., 'binance', 'coinbase')", "type": "string" }, "limit": { "description": "Limit the number of candles returned (optional)", "type": "number" }, "since": { "description": "Timestamp in ms to fetch data since (optional)", "type": "number" }, "symbol": { "description": "Trading symbol (e.g., 'BTC/USDT')", "type": "string" }, "timeframe": { "default": "1h", "description": "Timeframe (e.g., '1m', '5m', '1h', '1d')", "type": "string" } }, "required": [ "exchangeId", "symbol" ], "type": "object" }
ID: mt6hftp7hy