Skip to main content
Glama
aadarshvelu

Derive MCP Server

by aadarshvelu

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
NameRequiredDescriptionDefault
currencyYesCurrency, e.g. ETH, BTC
start_timestampYesStart timestamp in seconds
end_timestampYesEnd timestamp in seconds
periodYesCandle period in seconds: 60, 300, 900, 1800, 3600, 14400, 28800, 86400, or 604800

Implementation Reference

  • 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);
    }
  • 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: {

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/aadarshvelu/derive-mcp'

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