Skip to main content
Glama

metatrader-mcp-server

get_margin_level.md566 B
# get_margin_level 📊 ## What does it do? Returns the current margin level (in %), a key risk metric for your account. ## Parameters - `connection`: The MetaTrader connection object (must be connected!). ## Returns - `float`: Current margin level percentage. ## Raises - `AccountInfoError`: If margin level can't be retrieved. - `ConnectionError`: If not connected to the terminal. ## Example ```python margin_level = get_margin_level(connection) print(f"Margin Level: {margin_level}% 📈") ``` --- > **Warning:** Low margin level = risk of stop out! 🚨

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