INNER CODE UNIT · Python

list_pending_orders

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

def list_pending_orders():
    """List all pending (not-yet-filled) MT5 orders, e.g. the stop/limit legs
    of a split order that price has not reached yet.

    Returns the bridge JSON as-is: ticket, symbol, order type, requested price,
    volume in lots, and SL/TP. Read-only; places nothing.
    """
    return _request("GET", "/orders")


@mcp.tool()
def account_stats():
    """Get MT5 account statistics: balance, equity, margin, free margin, and
    open profit, all in the account's deposit currency. Read-only.
    """
    return _request("GET", "/stats")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…