operationId: replaceFirmAccount
Requires accounts:write. A firm API key is automatically scoped to its firm.
What it does
- Cancels working orders and flattens open positions on the original account.
- Sets the original account to
closedand emitsaccount.closed. - Generates a replacement from the same evaluation template and trading user.
- Emits
account.createdfor the new account.
account_id. Store it before sending new orders.
Body
The request body is required. Send{} when you do not need a custom status.
Response — 200 OK
item is the new account. Use item.id on the Trading API.

