Skip to main content
Glama

fetch_market_data

Retrieve OHLCV market data for cryptocurrency trading pairs and timeframes to support analysis and automated trading decisions.

Instructions

Fetch OHLCV data for a specified trading pair and timeframe.

Parameters: pair (str): Trading pair (e.g., "BTC/USDT"). timeframe (str): Timeframe for the data (e.g., "1h", "5m"). ctx (Context): MCP context object for logging and client access.

Returns: str: Stringified JSON response containing OHLCV data, or None if failed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pairYes
timeframeYes

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/worlddebugger/freqtrade-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server