Skip to main content
GET
/
api
/
accounts
/
{id}
/
positions
/
closed
Closed positions
curl --request GET \
  --url https://api.easierprop.com/api/accounts/{id}/positions/closed \
  --header 'X-API-Key: <api-key>'
{
  "ok": true,
  "data": [
    {}
  ]
}

Authorizations

X-API-Key
string
header
required

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

id
string<uuid>
required

Account ID

Query Parameters

from
string
required

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.

to
string
required

End datetime (YYYY-MM-DDTHH:mm:ss). Same normalization rules as from.

Response

Closed positions

ok
boolean
Example:

true

data
object[]