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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/client.ts:74-83 (handler)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: [] } },
- src/server.ts:81-83 (handler)Server-side handler dispatches 'get_account_info' tool call to BybitClient.getAccountInfo().case 'get_account_info': result = await this.client.getAccountInfo(); break;