Skip to main content
Glama

metatrader-mcp-server

get_version.md714 B
# get_version(connection) 🏷️ Retrieves the version of the connected MetaTrader 5 terminal. ## Parameters - **connection**: The connection object for the current session. ## Returns - **Tuple[int, int, int, int]**: Version as `(major, minor, build, revision)`. ## Raises - **ConnectionError**: If not connected or unable to fetch version info. ## How it works 1. Gets terminal info via `get_terminal_info`. 2. Parses version details from terminal info. 3. Defaults to major version 5 if parsing fails. ## Exceptions Raises `ConnectionError` if version information can't be retrieved. ## Fun Fact 🏷️ Knowing your MetaTrader version helps you stay up-to-date and compatible with the latest features!

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