Skip to main content
Glama

get_tickers

Retrieve real-time trading data for specific cryptocurrency pairs on Bybit, including price, volume, and market movements, to support informed trading decisions.

Instructions

Get ticker information

Input Schema

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

Implementation Reference

  • MCP tool handler for 'get_tickers' in the switch statement of CallToolRequestSchema. Calls BybitService.getTickers and returns JSON stringified result.
    case 'get_tickers': { const result = await this.bybitService.getTickers(typedArgs.category, typedArgs.symbol); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
  • src/index.ts:122-138 (registration)
    Tool registration in ListToolsRequestSchema response, including name, description, and input schema requiring category and symbol.
    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'], }, },
  • Core implementation of getTickers in BybitService class. Makes authenticated GET request to Bybit API /v5/market/tickers endpoint.
    async getTickers(category: string, symbol: string): Promise<BybitResponse<{ list: TickerData[] }> | { error: string }> { return this.makeBybitRequest('/v5/market/tickers', 'GET', { category, symbol }); }
  • TypeScript interface defining the structure of ticker data returned from Bybit API.
    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