List open positions on an account
list_positionsRetrieve live open positions for a specified MT5 account, including symbol, direction, volume, entry and current price, stop loss, take profit, swap, and floating profit.
Instructions
List the positions currently open on one MT5 account, read live from the terminal: symbol, direction, volume, open and current price, stop loss, take profit, swap and floating profit. accountId is the id field from list_accounts — NOT login. Each position's ticket is the handle used to close it. An sl or tp of 0 means no stop loss or take profit is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | The `id` field from list_accounts. Not the `login` (MT5 account number). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| positions | Yes |