List positions
list_positionsOpen positions on one account as last observed; brokerPositionId is what close_position and modify_position take. Pages with limit and cursor. Example: {"account_id": ""}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account_id": "<account_id>"
},
"name": "list_positions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Items per page, 1–100. Default 25. | |
| cursor | No | next_cursor from the previous page. | |
| account_id | Yes | The fxapis account id (a UUID) from list_accounts — not the MT5 login number. | |
| include_closed | No | Also return positions that have closed. Default false. | |
| response_format | No | concise (default): what a next step needs. detailed: every field the API returns. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| items | Yes | ||
| total | Yes | ||
| truncated | No | ||
| next_cursor | Yes | Pass as cursor for the next page; null on the last. |