Set Admin Auto Liq Action
Set the auto-liquidation action for an account.
Available to: Organization administrators
Environments: Demo
Rate Limit: No endpoint-specific limit
Set the auto-liquidation action for an account. Use this endpoint to lock an account (rejecting new orders), trigger liquidation, or unlock it by setting the action back to Normal.
adminAction set to Normal. It does not auto-unlock at the next trading session, time out, or reset on its own.There is no bulk version of this endpoint. You must call it separately for each account.
adminAction Values
adminActionReasonCode Values
Most partners use Other (with a descriptive adminActionReason). The Close* and Restricted* codes are used internally for brokerage account management.
When adminActionReasonCode is Other, you must provide an adminActionReason describing why you’re taking the action. For all other reason codes, adminActionReason is optional.
Common Partner Workflows
- Lock an account: Set
adminActiontoLockTradingImmediatelyto prevent new orders. The account’s open positions are not affected. - Liquidate and lock: Set
adminActiontoLiquidateImmediately, then call the endpoint again withadminActionset toLockTradingImmediately. - Only block new positions: Set
adminActiontoLiquidateOnlyModeImmediately. The account can still close existing positions but cannot open new ones. - Unlock an account: Set
adminActiontoNormalto allow the account to resume trading. - Unlock after a daily loss limit breach (
doNotUnlockenabled): If the account’sdoNotUnlockfield is set totrue, a daily loss limit breach locks the account and the lock does not auto-reset at the next market open. Call this endpoint withNormalbefore the next trading session to let the trader resume. ThedoNotUnlocksetting stays in place for future sessions. - Account remediation: Use this endpoint alongside
changeDemoBalanceandupdateMaxNetLiqto reset an account after an incident.
Best Practices
- Track active accounts on your end and avoid calling this endpoint on archived accounts. The endpoint accepts requests for archived accounts without returning an error, which can lead to unnecessary API calls and rate limit issues.
- Verify the account status after calling this endpoint by checking the
accountRiskStatusobject in the response or by callingaccountRiskStatus/deps.
Common Failure Scenarios
accountIddoes not reference a valid account (returnsHTTP 404)adminActionReasonCodeisOtherbutadminActionReasonis missingadminActionReasonexceeds 8,192 characters- Caller is not an organization administrator on the Demo environment (returns
HTTP 401)
Error Messages
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
Response
Non-empty if the request failed