CoinGecko MCP Server

get-ohlc-data

Retrieve OHLC (Open, High, Low, Close) data for cryptocurrencies within specified date ranges and intervals. Access daily or hourly historical price data for analysis and insights using the CoinGecko API.

Instructions

Get OHLC (Open, High, Low, Close) data for a specific coin within a time range. Data up to March 9, 2025

Input Schema

NameRequiredDescriptionDefault
from_dateYesStart date in YYYY-MM-DD format (e.g., '2024-01-01')
idYesCoinGecko coin ID (use find-coin-ids to lookup)
intervalYesData interval - daily (up to 180 days) or hourly (up to 31 days)
to_dateYesEnd date in YYYY-MM-DD format (e.g., '2024-12-30')
vs_currencyYesTarget currency (e.g., 'usd', 'eur')

Input Schema (JSON Schema)

{ "properties": { "from_date": { "description": "Start date in YYYY-MM-DD format (e.g., '2024-01-01')", "pattern": "^\\d{4}-\\d{2}-\\d{2}$", "type": "string" }, "id": { "description": "CoinGecko coin ID (use find-coin-ids to lookup)", "type": "string" }, "interval": { "description": "Data interval - daily (up to 180 days) or hourly (up to 31 days)", "enum": [ "daily", "hourly" ], "type": "string" }, "to_date": { "description": "End date in YYYY-MM-DD format (e.g., '2024-12-30')", "pattern": "^\\d{4}-\\d{2}-\\d{2}$", "type": "string" }, "vs_currency": { "description": "Target currency (e.g., 'usd', 'eur')", "type": "string" } }, "required": [ "id", "vs_currency", "from_date", "to_date", "interval" ], "type": "object" }

You must be authenticated.

Other Tools from CoinGecko MCP Server

Related Tools

ID: l0na8tkwaa