Skip to main content
Glama

metatrader-mcp-server

get_balance.md586 B
# get_balance 💰 ## What does it do? Returns the current account balance (the cash you have, not counting open positions). ## Parameters - `connection`: The MetaTrader connection object (must be connected!). ## Returns - `float`: Your account balance in deposit currency. ## Raises - `AccountInfoError`: If balance can't be retrieved. - `ConnectionError`: If not connected to the terminal. ## Example ```python balance = get_balance(connection) print(f"Balance: {balance} 🤑") ``` --- > **Tip:** Balance is your financial starting line. Don't spend it all in one place! 😉

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/ariadng/metatrader-mcp-server'

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