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
| Name | Required | Description | Default |
|---|---|---|---|
| pair | Yes | ||
| timeframe | Yes |