Skip to main content
Glama
aadarshvelu

Derive MCP Server

by aadarshvelu

get_ticker

Retrieve current market data including price, volume, and bid/ask quotes for financial instruments to monitor real-time trading conditions.

Instructions

Get current price, volume, bid/ask for an instrument

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instrument_nameYesInstrument name, e.g. ETH-PERP

Implementation Reference

  • The `getTicker` method in the client class sends a POST request to the 'public/get_ticker' endpoint.
    getTicker(params: GetTickerParams): Promise<unknown> {
      return this.post('public/get_ticker', params);
    }
  • Definition of the parameters required for the get_ticker tool.
    export interface GetTickerParams {
      instrument_name: string;
    }
  • src/index.ts:59-60 (registration)
    Registration/handling of the get_ticker tool call in the main entry point.
    case 'get_ticker':
      result = await client.getTicker(a as unknown as GetTickerParams);

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