fetchOHLCV
Retrieve OHLCV candlestick data for cryptocurrency trading pairs from exchanges to analyze market trends and price movements.
Instructions
Fetch OHLCV candlestick data for a symbol on an exchange
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": {
"exchangeId": "<exchangeId>",
"symbol": "<symbol>"
},
"name": "fetchOHLCV"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exchangeId | Yes | Exchange ID (e.g., 'binance', 'coinbase') | |
| symbol | Yes | Trading symbol (e.g., 'BTC/USDT') | |
| timeframe | No | Timeframe (e.g., '1m', '5m', '1h', '1d') | 1h |
| since | No | Timestamp in ms to fetch data since (optional) | |
| limit | No | Limit the number of candles returned (optional) |