Skip to main content
POST
Close all positions on an account

Authorizations

X-API-Key
string
header
required

Organization API key. Format: "hp_live_{key}". Organization admins manage the key in the dashboard.

Path Parameters

accountId
string
required

Body

application/json
reason
string
required

Why the positions are being closed. Recorded on every resulting order and on the account's event log.

Required string length: 3 - 200
Example:

"Hedging review — positions closed pending clarification"

Response

Success - Positions closed and orders cancelled

success
boolean
Example:

true

data
object