Skip to main content
Glama

metatrader-mcp-server

get_balance.py541 B
from ..exceptions import AccountInfoError, ConnectionError from .get_account_info import get_account_info def get_balance(connection) -> float: """ Get current account balance. Balance is the amount of money in the account without considering open positions. Returns: float: Current account balance. Raises: AccountInfoError: If balance cannot be retrieved. ConnectionError: If not connected to terminal. """ account_info = get_account_info(connection) return account_info["balance"]

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