Skip to main content
Glama
ethancod1ng

Bybit MCP Server

by ethancod1ng

get_account_info

Retrieve account details and balance information from Bybit trading platform for portfolio management and trading decisions.

Instructions

Get account information and balances

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core implementation of get_account_info tool: fetches wallet balance for UNIFIED account type via Bybit API.
    async getAccountInfo() { try { const response = await this.client.getWalletBalance({ accountType: 'UNIFIED' }); return response; } catch (error) { throw new Error(`Failed to get account info: ${error instanceof Error ? error.message : JSON.stringify(error)}`); } }
  • src/tools.ts:51-59 (registration)
    Registers the 'get_account_info' tool in the tools array with no input parameters.
    { name: 'get_account_info', description: 'Get account information and balances', inputSchema: { type: 'object', properties: {}, required: [] } },
  • Server-side handler dispatches 'get_account_info' tool call to BybitClient.getAccountInfo().
    case 'get_account_info': result = await this.client.getAccountInfo(); break;

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/ethancod1ng/bybit-mcp-server'

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