Close a portfolio
Portfolio
Close a portfolio
Handles the close of an existing portfolio.
Endpoint
POST /api/v1/portfolio/close
Authentication
Device-key cookie or X-API-KEY header. The credential’s account owns the target portfolio,
and a pinned credential may only act on its own subaccount.
Returns
200 OKwithPortfolioStatusResponseon success.409 Conflictif the portfolio has cash, open positions, or resting orders, or is not inACTIVEstatus.
POST
Close a portfolio
Authorizations
Base64-encoded API key issued by POST /api/v1/api-keys.
Body
application/json
Response
Portfolio closed
Response returned after a successful portfolio close or reopen.