Skip to main content
Glama

metatrader-mcp-server

get_account_info.md704 B
# get_account_info 🕵️‍♂️ ## What does it do? Fetches comprehensive MetaTrader account information as a dictionary. This includes login, trade mode, leverage, balance, credit, profit, equity, margin stats, and more! ## Parameters - `connection`: The MetaTrader connection object (must be connected!). ## Returns - `Dict[str, Any]`: All the juicy account details you ever wanted. ## Raises - `AccountInfoError`: If account info can't be retrieved. - `ConnectionError`: If not connected to the terminal. ## Example ```python info = get_account_info(connection) print(info['balance']) # 💰 ``` --- > **Pro Tip:** Always check your connection before calling. No connection, no info! 🚫

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