Liquidate Position
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Bearer authentication of the form Bearer <token>, where token is your auth token.
Available to: All authenticated users
Environments: Demo, Live
Rate Limit: No endpoint-specific limit
Cancels the working orders for a specific contractId on the given accountId and closes (flattens) the resulting position with a market order. This is a request, not a guarantee — it can fail for reasons ranging from exchange rejection to misconfiguration. When the request is rejected, the response carries a failureReason and failureText.
Set isAutomated to true when this is triggered by code or an automated process, and false only when a human triggers it directly.
Common Failure Scenarios
SessionClosed, NoQuote).NotEnoughLiquidity).Unauthorized).Error Messages
See the failureReason enum in the response schema for the complete list of values.