Skip to main content
Glama
aadarshvelu

Derive MCP Server

by aadarshvelu

get_statistics

Retrieve aggregate platform statistics including volume and open interest for specified instruments from Derive.xyz market data.

Instructions

Get aggregate platform statistics (volume, open interest, etc.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instrument_nameYesInstrument name or 'ALL', 'OPTION', 'PERP', 'SPOT'
currencyNoCurrency filter
end_timeNoEnd time in milliseconds

Implementation Reference

  • The handler method in the DeriveClient class that performs the API request for 'get_statistics'.
    getStatistics(params: GetStatisticsParams): Promise<unknown> {
      return this.post('public/statistics', params);
    }
  • src/tools.ts:214-225 (registration)
    Registration and schema definition for the 'get_statistics' MCP tool.
      name: 'get_statistics',
      description: 'Get aggregate platform statistics (volume, open interest, etc.)',
      inputSchema: {
        type: 'object',
        properties: {
          instrument_name: { type: 'string', description: "Instrument name or 'ALL', 'OPTION', 'PERP', 'SPOT'" },
          currency: { type: 'string', description: 'Currency filter' },
          end_time: { type: 'integer', description: 'End time in milliseconds' },
        },
        required: ['instrument_name'],
      },
    },

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