Skip to main content
Glama

metatrader-mcp-server

is_trade_allowed.md585 B
# is_trade_allowed ✅ ## What does it do? Checks if trading is allowed for this account. ## Parameters - `connection`: The MetaTrader connection object (must be connected!). ## Returns - `bool`: True if trading is allowed, False otherwise. ## Raises - `AccountInfoError`: If trading permission can't be determined. - `ConnectionError`: If not connected to the terminal. ## Example ```python if is_trade_allowed(connection): print("Trading is allowed! 🚦") else: print("Trading is NOT allowed! 🚫") ``` --- > **Safety first:** Always check before you trade! 🛡️

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