Closed positions
Returns positions closed within the given date range. Each item is
a fully-paired closed position (open + close legs reconciled by
mt5rest). For raw In/Out deals see /orders/history.
Authorizations
Client API key (prefixed with sk_). On /api/* endpoints the key
is scoped to its own MT5 accounts. On /admin/* endpoints the key
identifies its owning admin and grants access to all of that
admin's keys — so any of your sk_ works to manage any of your
other keys (cross-admin operations are rejected as 400 Key not found).
Path Parameters
Account ID
Query Parameters
Start datetime in YYYY-MM-DDTHH:mm:ss (broker timezone).
Date.toISOString() output (with .SSSZ suffix) is accepted —
the gateway normalizes it. Malformed values return 400.
End datetime (YYYY-MM-DDTHH:mm:ss). Same normalization rules as from.