List deal history for an account
list_dealsList closed deals for a given MT5 account, returning each executed fill's symbol, direction, volume, price, realized profit, costs, and timestamp, newest first.
Instructions
List the closed deal history of one MT5 account — the fills that already happened, newest first: symbol, direction, entry kind, volume, price, realized profit, costs and time. For what is open right now use list_positions, and for orders still resting use list_pending_orders. For totals and ratios over a period use get_account_performance rather than adding these rows up. accountId is the id field from list_accounts — NOT login. This endpoint is paginated: limit defaults to 50 and may not exceed 500, and one call returns exactly one page. If the answer reports that more deals are available, it also reports a cursor — you must call this tool again passing that value as cursor to read the next page. This tool never pages on its own. Narrow instead of paging where you can: entry takes lowercase in (opening) or out (closing), and from/to take ISO-8601 timestamps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Window end (ISO-8601). Omit for no bound on this side. | |
| from | No | Window start (ISO-8601). Omit for no bound on this side. | |
| entry | No | Narrow to opening deals (`in`) or closing deals (`out`). Lowercase — the `entry` field in the response is uppercase and is not valid here. Omit for both. | |
| limit | No | Deals per page, 1 to 500. Defaults to 50. One call returns one page; it is never a total. | |
| cursor | No | The `nextCursor` from a previous call to this tool, to retrieve the page after it. Omit for the first page. Opaque — do not construct or edit one. | |
| accountId | Yes | The `id` field from list_accounts. Not the `login` (MT5 account number). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deals | Yes | ||
| nextCursor | Yes | ||
| syncedThrough | Yes |