# Open positions

## Summary

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

<figure><img src="https://3346527447-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRmUsCXIchljLIRr9JUCF%2Fuploads%2Fgit-blob-86ddcd1d4cb9a79f9c11ebd5aa428c2884bcd387%2Fwidget-open-positions.png?alt=media" alt="Open positions"><figcaption><p>Open positions</p></figcaption></figure>

{% hint style="info" %}
The widget lists only open positions. For a list of closed positions, use the [Closed positions](https://docs.b2prime.com/widgets/closed-positions) widget.
{% endhint %}

## Settings

### Adjust the time period

By default, the widget lists open positions for all the time. To display positions opened during a specific time period, use the **Select date range** field. The most recent position 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 trades

Click the **chevron icon** in a position row to expand a list of related trades.

### Close positions

To close a position, hover over it and click the **CLOSE** button that appears.

To close all/multiple positions at once, click **Close all** and select the desired option: close all positions or close positions with positive/negative PnL.

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

***

**Position size**

The current position volume, in lots.

***

**Open price**

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

***

**Current price**

The current market price of the base asset: bid for Long positions and ask for Short positions.

***

**Stop loss**

The [Stop loss](https://docs.b2prime.com/knowledge-base/price-triggers) value, if set when placing the order.

If the value wasn't set, you can use the **Add** button to configure it.

***

**Take profit**

The [Take profit](https://docs.b2prime.com/knowledge-base/price-triggers) value, if set when placing the order.

If the value wasn't set, you can use the **Add** button to configure it.

***

**Unrealized PnL, DAY, {RAT}**

The potential profit or loss earned for a current day, in conversion to the platform root asset.

For **Long** positions, this value is calculated as *Position size* × (*Current bid price* – *First bid price for today*).

For **Short** positions, this value is calculated as *Position size* × (*First ask price for today* – *Current ask price*).

If a position was opened today, then the *Open VWAP* is used instead of the *First price for today*.

***

**Unrealized PnL, DAY, %**

The potential profit or loss earned for a current day, in percents.

***

**Unrealized PnL, Total, {RAT}**

The potential profit or loss earned for the entire period from the moment the position was opened, in conversion to the platform root asset.

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

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

***

**Unrealized PnL, Total, %**

The potential profit or loss earned for the entire period from the moment the position was opened, in conversion to the platform root asset, in percents.

***

**Used margin, {RAT}**

The amount of your funds used for maintaining a position, in conversion to the platform root asset.

***

**Leverage**

The actual leverage ratio used for opening a position.

***

**Req. leverage**

The leverage ratio you requested when opening a position.

***

**{RAT} notional**

The current position size equivalent in the platform root asset.

***

**Rate to {RAT}**

The current exchange rate of a quote asset to the platform root asset.

***

**Open date, time**

The date and time when a position was opened.

***

**Updated date, time**

The date and time of the latest position-related trade.
