> For the complete documentation index, see [llms.txt](https://trader-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://trader-docs.b2trader.b2broker.com/widgets/closed-positions.md).

# Closed positions

## Summary

This widget displays a list of your closed positions on the selected account.

The data is available for the last 92 days.

<figure><img src="/files/RasTsGsOFpwApln1fA2A" alt="Closed positions"><figcaption><p>Closed positions</p></figcaption></figure>

{% hint style="info" %}
The widget lists only closed positions. For a list of currently open positions, use the [Open positions](/widgets/open-positions.md) widget.
{% endhint %}

## Settings

### Adjust the time period

By default, the widget lists closed positions for the last 90 days. To display positions closed during a specific time period, use the **Select date range** field. The most recently closed positions appears at the top of the list.

### Configure columns

Click the **Configure columns** button in the widget header to adjust the displayed information:

* **Mark or unmark column checkboxes**: To display or hide them; the column checkboxes highlighted in grey can’t be unmarked.
* **Drag and drop the columns**: To adjust their order in the table.

### View related orders

Click the **chevron icon** in a position row to expand a list of position-closing orders. As positions can be partially closed, there may be more than one line. For each executed position-closing order, a separate line is added.

## Fields

The following information is provided about each position:

**Market**

The market type (Spot, CFD, or Perpetual) and market ticker.

***

**Full name**

The market full name or description.

***

**Position ID**

The position identifier.

***

**Side**

The position side: Buy or Sell.

***

**Order type**

The [order type](/knowledge-base/order-types.md).

***

**Time in force**

The [Time in force](/knowledge-base/time-in-force.md).

***

**Pos. closed size**

The closed volume, in lots, which is equivalent to the corresponding filled order volume.

***

**Open price**

The volume-weighted average price (VWAP) at which the position was opened.

***

**Close price**

The volume-weighted average price (VWAP) of trades related to a position-closing order.

***

**Close order ID**

The identifier of an order closing the position.

***

**Realized PnL, {RAT}**

The actual profit or loss earned, in conversion to the platform root asset.

For **Long** positions, this value is calculated as *Position size* × (*Close price* – *Open price*).

For **Short** positions, this value is calculated as *Position size* × (*Open price* – *Close price*).

***

**{RAT} notional**

The equivalent of the closed volume in the platform root asset.

***

**History rate to {RAT}**

The rate to the platform root asset at the moment of position closing.

***

**Reason**

The reason for closing a position. Possible values:

* **Trader**: The position was closed by you.
* **Admin**: The position was closed by an Admin.
* **Stop-out**: The position was automatically closed by the system, as a result of Stop out.
* **Stop loss**: The position was closed by the [Stop loss](/knowledge-base/price-triggers.md) trigger.
* **Take profit**: The position was closed by the [Take profit](/knowledge-base/price-triggers.md) trigger.
* **Webhook alert**: The position was closed via a [TradingView webhook](https://github.com/b2broker-gitbook/gitbook-bbp/blob/master/b2trader/get-started/tradingview-webhooks.md).

***

**Comment**

The text note inherited from the opening order. Up to 100 characters. The comment can't be edited after the order is placed.

***

**Open date, time**

The date and time when a position was opened.

***

**Closed date, time**

The date and time when a position-closing order was last updated (fully executed).


---

# 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:

```
GET https://trader-docs.b2trader.b2broker.com/widgets/closed-positions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
