INNER CODE UNIT · Python

bridge_health

codedpro/mt5-trade-split-manager · mcp_server.py:113

def bridge_health():
    """Check that the REST bridge is up and reachable before trading.

    Returns the bridge's health JSON (status, TCP host/port it listens on for
    the EA, and whether API-key auth is required). If the bridge process is
    down this returns "bridge unreachable at <url>". Note: a healthy bridge
    does not guarantee the MT5 EA is connected - that only shows up when a
    command times out.
    """
    return _request("GET", "/health")


# --- Trading tools (registered only when MT5_MCP_ENABLE_TRADING is on) -------

if TRADING_ENABLED:

    @mcp.tool()
    def place_split_order(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…