INNER CODE UNIT · Python
list_positions
codedpro/mt5-trade-split-manager · mcp_server.py:83
def list_positions():
"""List all open MT5 positions (the filled legs of split orders).
Returns the bridge JSON as-is: each position carries its ticket, symbol,
volume in lots, open price, current SL/TP, and floating profit in the
account currency. Read-only; places nothing.
"""
return _request("GET", "/positions")
@mcp.tool()
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.
"""