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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pair": "<pair>",
"timeframe": "<timeframe>"
},
"name": "fetch_market_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | Yes | ||
| timeframe | Yes |