# 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="https://3809883000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5nDTeWRBfWeQuJ1QN8Tw%2Fuploads%2Fgit-blob-074d3937fc8f55ad27ef32146928ceed831412ff%2Fwidget-closed-positions.png?alt=media" 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](https://trader-docs.b2trader.b2broker.com/widgets/open-positions) 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](https://trader-docs.b2trader.b2broker.com/knowledge-base/order-types).

***

**Time in force**

The [Time in force](https://trader-docs.b2trader.b2broker.com/knowledge-base/time-in-force).

***

**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](https://trader-docs.b2trader.b2broker.com/knowledge-base/price-triggers) trigger.
* **Take profit**: The position was closed by the [Take profit](https://trader-docs.b2trader.b2broker.com/knowledge-base/price-triggers) 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).
