> For the complete documentation index, see [llms.txt](https://api-docs.b2trader.b2broker.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.b2trader.b2broker.com/get-started/account-statuses.md).

# Account statuses

Each trading account has an `accountStatus` field that determines which operations are permitted on the account. The field is returned on account objects by the API, such as in [Get accounts](/rest-api/settings.md).

An account can be assigned one of the following statuses:

* **Active**: All operations are permitted, including placing, modifying, and canceling orders, opening and closing positions, deposits, and withdrawals.
* **Halted**: Trader-initiated trading is blocked. Requests to place, modify, or cancel orders and to open or close positions are rejected. Deposits and withdrawals remain allowed. Managed trading through the Management API (MAM, B2COPY) continues to work.
* **Frozen**: All operations are blocked. Trading, deposits, and withdrawals are unavailable, and the account is view-only. Stop-out liquidation still executes as a safety mechanism.
* **Archived**: The account is decommissioned and hidden from all user-facing surfaces.

{% hint style="info" %}
Real-time profit and loss, equity, margin level, and funding settlement continue for all statuses.
{% endhint %}

{% hint style="warning" %}
Archived accounts are never returned in the trading API account list. They are excluded server-side, so an account that changes to *Archived* stops appearing in [Get accounts](/rest-api/settings.md) responses.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://api-docs.b2trader.b2broker.com/get-started/account-statuses.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
