post
https://betaapi.x9trader.com/api/broker/v1/positions/close-all
Close every open position on one account at market.
This is irreversible. Use with caution. Pending orders are untouched — cancel those with POST /v1/orders/cancel-all.
Request Body:
{ "account_number": "11111115" }Replaces: POST /api/v1/accounts/{account_number}/close-trades and POST /api/v1/crm/users/{login_id}/close-trades. Note the old endpoints also cancelled pending orders; this one does not.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
400Rejected — market closed or trading disabled on the account
401Invalid or missing API key
403Access denied (credential scope)
404Account not found
429Rate limit exceeded