Skip to main content
POST
Close all positions on an account

Authorizations

Authorization
string
header
required

JWT Bearer token for user session auth. Format: "Bearer {token}". Used by User and Organization endpoints.

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