get_spot_feed_history_candles
Retrieve historical OHLC candlestick data for cryptocurrency spot prices to analyze market trends and price movements over specified time periods.
Instructions
Get OHLC candlestick data for spot prices
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes | Currency, e.g. ETH, BTC | |
| start_timestamp | Yes | Start timestamp in seconds | |
| end_timestamp | Yes | End timestamp in seconds | |
| period | Yes | Candle period in seconds: 60, 300, 900, 1800, 3600, 14400, 28800, 86400, or 604800 |
Implementation Reference
- src/client.ts:129-131 (handler)The actual implementation of the tool, defined as a method on the DeriveClient class which makes a POST request to the API.
getSpotFeedHistoryCandles(params: GetSpotFeedHistoryCandlesParams): Promise<unknown> { return this.post('public/get_spot_feed_history_candles', params); } - src/index.ts:68-69 (handler)The MCP request handler that routes the tool name to the appropriate client method.
case 'get_spot_feed_history_candles': result = await client.getSpotFeedHistoryCandles(a as unknown as GetSpotFeedHistoryCandlesParams); - src/tools.ts:102-104 (registration)The MCP tool definition (schema and registration) for 'get_spot_feed_history_candles'.
name: 'get_spot_feed_history_candles', description: 'Get OHLC candlestick data for spot prices', inputSchema: {