Skip to main content
Glama
aadarshvelu

Derive MCP Server

by aadarshvelu

get_tickers

Retrieve ticker symbols for financial instruments by type, with filters for currency and expiry date to access market data.

Instructions

Get tickers for all instruments of a given type

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instrument_typeYesInstrument type
currencyNoCurrency filter (required for options)
expiry_dateNoExpiry date filter for options (YYYYMMDD format)

Implementation Reference

  • The `getTickers` method in `DeriveClient` sends a POST request to the 'public/get_tickers' endpoint.
    getTickers(params: GetTickersParams): Promise<unknown> {
      return this.post('public/get_tickers', params);
    }
  • src/tools.ts:75-86 (registration)
    The 'get_tickers' tool is defined in the tools list with its input schema.
      name: 'get_tickers',
      description: 'Get tickers for all instruments of a given type',
      inputSchema: {
        type: 'object',
        properties: {
          instrument_type: { type: 'string', enum: INSTRUMENT_TYPE_ENUM, description: 'Instrument type' },
          currency: { type: 'string', description: 'Currency filter (required for options)' },
          expiry_date: { type: 'string', description: 'Expiry date filter for options (YYYYMMDD format)' },
        },
        required: ['instrument_type'],
      },
    },
  • The request handler in `src/index.ts` calls `client.getTickers` when the 'get_tickers' tool is invoked.
    case 'get_tickers':
      result = await client.getTickers(a as unknown as GetTickersParams);

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