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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_account_info"
}
}Input 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;