Skip to main content
POST
/
api
/
accounts
/
{id}
/
close-all
Close all positions
curl --request POST \
  --url https://api.easierprop.com/api/accounts/{id}/close-all \
  --header 'X-API-Key: <api-key>'
{
  "ok": true,
  "data": {
    "closed": [
      12345678,
      12345679
    ],
    "failed": [
      {}
    ],
    "total_closed": 2,
    "total_failed": 0
  }
}

Authorizations

X-API-Key
string
header
required

Client API key (prefixed with sk_)

Path Parameters

id
string<uuid>
required

Account ID

Response

200 - application/json

Close-all result

ok
boolean
Example:

true

data
object