Skip to main content
Glama

get_tickers

Retrieve detailed ticker information for specific cryptocurrency pairs and categories on Bybit exchange. Supports spot, linear, and inverse markets to facilitate informed trading decisions.

Instructions

Get ticker information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYesCategory (spot, linear, inverse, etc.)
symbolYesSymbol (e.g., BTCUSDT)

Implementation Reference

  • Core handler implementation for get_tickers tool. Makes authenticated GET request to Bybit's /v5/market/tickers endpoint with category and symbol parameters.
    async getTickers(category: string, symbol: string): Promise<BybitResponse<{ list: TickerData[] }> | { error: string }> { return this.makeBybitRequest('/v5/market/tickers', 'GET', { category, symbol }); }
  • MCP CallToolRequest handler case for 'get_tickers'. Delegates to BybitService.getTickers and formats response as MCP content.
    case 'get_tickers': { const result = await this.bybitService.getTickers(typedArgs.category, typedArgs.symbol); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
  • Input schema definition and tool registration for get_tickers in ListTools response.
    { name: 'get_tickers', description: 'Get ticker information', inputSchema: { type: 'object', properties: { category: { type: 'string', description: 'Category (spot, linear, inverse, etc.)', }, symbol: { type: 'string', description: 'Symbol (e.g., BTCUSDT)', }, }, required: ['category', 'symbol'], }, },
  • TypeScript interface defining the structure of individual ticker data returned by the get_tickers tool.
    export interface TickerData { symbol: string; lastPrice: string; prevPrice24h: string; price24hPcnt: string; highPrice24h: string; lowPrice24h: string; volume24h: string; turnover24h: string; fundingRate: string; openInterest: string; }

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/kondisettyravi/mcp-bybit-node'

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